Skip to content

Commit 2cf92f5

Browse files
author
Kristján Oddsson
authored
Fix publish script (#1602)
* Don't publish to GPR * Update node and actions versions * Install playwright before testing and publishing
1 parent 1ba37b5 commit 2cf92f5

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,25 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 18
17+
node-version: 20
1818
- run: npm ci
19+
- run: npx playwright install --with-deps
20+
- run: npm run build --if-present
1921
- run: npm test
2022

2123
publish-npm:
2224
needs: build
2325
runs-on: ubuntu-latest
2426
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-node@v4
2729
with:
28-
node-version: 18
30+
node-version: 20
2931
registry-url: https://registry.npmjs.org/
3032
- run: npm ci
3133
- run: npm publish
3234
env:
3335
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34-
35-
publish-gpr:
36-
needs: build
37-
runs-on: ubuntu-latest
38-
steps:
39-
- uses: actions/checkout@v2
40-
- uses: actions/setup-node@v1
41-
with:
42-
node-version: 18
43-
registry-url: https://npm.pkg.github.com/
44-
- run: npm ci
45-
- run: npm publish
46-
env:
47-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy