Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

chore(release): move to monorepo [skip-ci] (#260) #913

chore(release): move to monorepo [skip-ci] (#260)

chore(release): move to monorepo [skip-ci] (#260) #913

Workflow file for this run

name: Node.js Package
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
##
# Runs semantic release in a regular
##
release:
name: Semantic Release
timeout-minutes: 15
runs-on: ubuntu-latest
# https://github.com/semantic-release/npm
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- name: Install dependencies
run: npm ci
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Build
run: npm run build
- name: Semantic Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true