-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 779 Bytes
/
Copy pathdeploy.yml
File metadata and controls
35 lines (29 loc) · 779 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
name: Deployment
on:
workflow_run:
workflows: [Continuous Integration]
types: [completed]
branches: [main]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
deploy:
name: Publish all NPM Packages
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
with:
run_install: true
- uses: actions/setup-node@v5
with:
node-version: 24
registry-url: https://registry.npmjs.org
always-auth: true
scope: '@spearwolf'
- run: pnpm run publishNpmPkg
name: Publish packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}