🔖 v5.4.0 #94
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: Publish | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
publish_npm: | |
name: Publish to NPM | |
runs-on: ubuntu-latest | |
concurrency: | |
group: publish-npm-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
packages: write | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 | |
with: | |
node-version: 16 | |
registry-url: 'https://registry.npmjs.org' | |
scope: '@stoe' | |
- name: npm install | |
run: | | |
npm pkg delete scripts.prepare | |
npm install --ignore-scripts --pure-lockfile | |
git ls-files -z . | xargs -0 git update-index --assume-unchanged | |
- run: npm run publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
publish_gh: | |
name: Publish to GitHub | |
runs-on: ubuntu-latest | |
concurrency: | |
group: publish-gh-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
packages: write | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 | |
with: | |
node-version: 16 | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@stoe' | |
- name: npm install | |
run: | | |
npm pkg delete scripts.prepare | |
npm install --ignore-scripts --pure-lockfile | |
git ls-files -z . | xargs -0 git update-index --assume-unchanged | |
- run: npm run publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |