Skip to content

2.3.1

2.3.1 #2

Workflow file for this run

name: Publish to npmjs
on:
release:
types: [ published ]
jobs:
build:
name: Build and publish
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Install latest npm
run: npm install -g npm
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build
run: npm pack
- name: Publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}