v1.0.2 #14
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: Release on NPM JS | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
release-on-npm-js: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install dependencies | |
run: npm ci | |
working-directory: ./addon | |
- name: Build | |
run: npm run build --if-present | |
working-directory: ./addon | |
- name: Copy LICENSE | |
run: cp ./LICENSE ./addon/ | |
- name: Copy README.md | |
run: cp ./README.md ./addon/ | |
- name: Update Version Number ... | |
run: npm version ${{ github.event.release.tag_name }} | |
working-directory: ./addon | |
- name: Publish on NPM JS | |
uses: JS-DevTools/npm-publish@v2 | |
with: | |
access: public | |
package: ./addon/package.json | |
token: ${{ secrets.NPM_TOKEN }} |