-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (28 loc) · 926 Bytes
/
release-npmjs.yml
File metadata and controls
28 lines (28 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Release to npmjs
on:
push:
tags:
- "v*"
jobs:
test:
uses: ./.github/workflows/ci.yml
release:
environment: release-npmjs
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for OIDC
steps:
- uses: actions/checkout@v5.0.0
with:
persist-credentials: false
- uses: actions/setup-node@v5.0.0
with:
# Use a Node.js version with an NPM version that supports OIDC.
# OIDC is supported since NPM 11.5.1.
node-version: 24.8.0
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Publish (build and test in prepublishOnly hook)
run: npm publish --provenance --access public