Skip to content

v10.3.0-rc.0

v10.3.0-rc.0 #229

Workflow file for this run

name: Publish to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Create dummy accesstoken file
run: echo 'dummytoken' > ./accesstoken
working-directory: example
- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
registry-url: 'https://registry.npmjs.org'
- name: Upgrade npm for OIDC support
run: npm install -g npm@latest
- name: Install dependencies and build 🔧
run: yarn install --immutable
- name: Publish package on NPM 📦
run: npm publish --provenance --access public ${{ github.event.release.prerelease && '--tag next' || ''}}