Skip to content

Commit a51c64d

Browse files
committed
Split jobs into separate actions with triggers
1 parent a4e2f5f commit a51c64d

2 files changed

Lines changed: 24 additions & 14 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy to GHP
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
permissions:
8+
contents: write
9+
jobs:
10+
build-gph:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: '24.x'
17+
registry-url: 'https://npm.pkg.github.com/'
18+
- run: yarn install --immutable
19+
- run: yarn build
20+
- run: npm publish --access public
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
name: Deploy to NPM and GHP
1+
name: Deploy to NPM
22

33
on:
4+
workflow_dispatch:
45
release:
56
types: [published]
67
permissions:
@@ -19,16 +20,3 @@ jobs:
1920
- run: npm publish --access public
2021
env:
2122
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22-
build-gph:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v3
26-
- uses: actions/setup-node@v3
27-
with:
28-
node-version: '24.x'
29-
registry-url: https://npm.pkg.github.com/
30-
- run: yarn install --immutable
31-
- run: yarn build
32-
- run: npm publish --access public
33-
env:
34-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)