Skip to content

@redturtle/volto-blocks 1.1.0 #9

@redturtle/volto-blocks 1.1.0

@redturtle/volto-blocks 1.1.0 #9

Workflow file for this run

name: Release latest version on npm
on:
release:
types: [released]
env:
NODE_VERSION: 20.x
jobs:
release_to_npm:
name: Release to npm
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
run_install: |
- args: [--frozen-lockfile]
- name: Extract package from release tag
id: get_package
run: |
RELEASE_TAG=${GITHUB_REF/refs\/tags\//}
echo "PACKAGE=$(echo $RELEASE_TAG | cut -d'@' -f1)" >> $GITHUB_OUTPUT
- name: Release to npm
run: npm publish --provenance --access public
working-directory: ./packages/${{ steps.get_package.outputs.PACKAGE }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}