π Bump version #17
Workflow file for this run
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
name: NPM Publish | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
npm-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
- name: Install dependencies π¦ | |
run: yarn | |
- name: Build π·ββοΈ | |
run: yarn run build | |
- name: Publish package to NPM π | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }} | |
run: | | |
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | |
npm publish | |
- name: Get branch names π³ | |
id: branch-name | |
uses: tj-actions/branch-names@v7 | |
with: | |
strip_tag_prefix: 'v' | |
- name: Publish GitHub Release π | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ${{steps.branch-name.outputs.tag}} | |
generate_release_notes: true |