-
Notifications
You must be signed in to change notification settings - Fork 91
37 lines (30 loc) · 927 Bytes
/
Copy pathpublish.yml
File metadata and controls
37 lines (30 loc) · 927 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
29
30
31
32
33
34
35
36
37
name: Publish package
on:
release:
types: [published]
workflow_dispatch:
permissions: {}
jobs:
publish-npm:
name: Publish to npm (OIDC)
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup environment (node + install)
uses: ./.github/actions/node-setup
with:
node-version: 24
- name: Build and validate package
run: npm run prepublishOnly
- name: Configure npm for OIDC trusted publishing
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
package-manager-cache: false
registry-url: https://registry.npmjs.org
- name: Publish to npm
run: npm publish --provenance --access public