Skip to content

put more emphasis on limitations in v2 release #148

put more emphasis on limitations in v2 release

put more emphasis on limitations in v2 release #148

name: npm Publish dev
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.17.1
# More info: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
registry-url: 'https://registry.npmjs.org'
- name: Use node_modules cache
uses: actions/cache@v3
with:
path: node_modules
key: yarn-node-18-lock-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-node-18-lock-
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: actions/upload-artifact@v3
with:
name: build-output
path: dist
if-no-files-found: error
- run: yarn size
- uses: martinbeentjes/[email protected]
id: package-version
- run: yarn version --no-git-tag-version --new-version ${{ steps.package-version.outputs.current-version }}-dev.${{ github.sha }}
# npm install -g npm@latest is necessary to make provenance available (available since v9.6.5 or so). More info: https://docs.npmjs.com/generating-provenance-statements
- run: npm install -g npm@latest
- run: npm publish --access public --tag dev
env:
# Is connected with actions/setup-node -> registry-url
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}