2.31.4 #70
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: | |
- '*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write # For using token to sign images | |
actions: read # For getting workflow run info to build provenance | |
packages: write # Required for publishing provenance. Issue: https://github.com/slsa-framework/slsa-github-generator/tree/main/internal/builders/container#known-issues | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.16.0 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install | |
run: npm ci --ignore-scripts | |
- name: Build | |
run: npm run build:dist | |
- name: Publish Package | |
run: npm publish --access public --no-git-checks --provenance --tag ${{ github.sha }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |