Skip to content

2.31.5-alpha.1

2.31.5-alpha.1 #72

Workflow file for this run

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 }}