Skip to content

Commit

Permalink
Setup release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 31, 2023
1 parent 2e9bd88 commit 3ad458d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
name: release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'

- run: yarn install
- run: yarn auto-dist-tag --write

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,16 @@
}
},
"git": {
"commitMessage": "v${version}",
"tagName": "v${version}"
},
"github": {
"release": true,
"releaseName": "v${version}",
"tokenRef": "GITHUB_AUTH"
},
"npm": {
"publish": false
}
}
}

0 comments on commit 3ad458d

Please sign in to comment.