Release v2.0.7 (#273) #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
name: make-release | |
jobs: | |
makerelease: | |
permissions: | |
contents: write | |
name: make-release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: '20.9.0' | |
registry-url: 'https://registry.npmjs.org/' | |
cache: 'yarn' | |
# Only push a tag that matches the version in package.json | |
- name: Tag em and bag em | |
run: | | |
git tag v$(cat package.json | jq -r .version) | |
git push origin v$(cat package.json | jq -r .version) | |
- name: Build package artifacts | |
run: yarn install && yarn build | |
- name: Publish package | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |