Update CHANGELOG.md #3
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
# For every push to the master branch, this publishes an NPM package to the | |
# "unstable" NPM tag. | |
name: Publish Unstable | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
publish: | |
name: "NPM Publish" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
cache: yarn | |
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
# We need a workspace aware version of npm because our addon is in a subdir but our .npmrc is in the root | |
- name: npm8 | |
run: npm install -g npm@8 | |
- name: set version | |
run: npm version --no-git-tag-version --workspaces-update=false `node -e "console.log(require('./package.json').version)"`-unstable.`git rev-parse --short HEAD` | |
working-directory: addon | |
- name: npm publish | |
run: npm publish --tag=unstable --verbose --workspace=addon | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |