Skip to content

Commit 8fe3e96

Browse files
authored
Update npm-publish-github-packages.yml
1 parent ee471ab commit 8fe3e96

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/npm-publish-github-packages.yml

+8-13
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,7 @@ on:
88
types: [created]
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
16-
with:
17-
node-version: 16
18-
- run: npm ci
19-
- run: npm test
20-
2111
publish-gpr:
22-
needs: build
2312
runs-on: ubuntu-latest
2413
permissions:
2514
contents: read
@@ -28,18 +17,24 @@ jobs:
2817
- uses: actions/checkout@v2
2918
- uses: actions/setup-node@v2
3019
with:
31-
node-version: 16
20+
node-version: 14
3221
registry-url: https://npm.pkg.github.com/
3322
- run: npm ci
3423
- run: npm publish
3524
env:
3625
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
27+
publish-yarn:
28+
runs-on: ubuntu-latest
29+
permissions:
30+
contents: read
31+
packages: write
32+
steps:
3733
- uses: actions/checkout@v2
3834
- uses: actions/setup-node@v2
3935
with:
4036
node-version: '14.x'
4137
registry-url: 'https://registry.npmjs.org'
42-
# Defaults to the user or organization that owns the workflow file
4338
scope: '@modifiedcommand'
4439
- run: yarn
4540
- run: yarn publish

0 commit comments

Comments
 (0)