Skip to content

Commit fafd7e5

Browse files
committed
chore: publish to npm
1 parent 352bff7 commit fafd7e5

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/publish-web-runtime.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33

4-
name: Publish Web Runtime
4+
name: Test and Publish Web Runtime
55

66
on:
77
release:
88
types: [prereleased]
99

1010
jobs:
11-
build:
11+
test:
1212
runs-on: windows-latest
1313
env:
1414
CI: 1
@@ -20,10 +20,9 @@ jobs:
2020
- name: Enable Corepack
2121
run: corepack enable
2222
- run: pnpm install
23-
- run: pnpm --filter "@uni-ra2/client-runtime" build
2423
- run: pnpm --filter "@uni-ra2/client-runtime" test:unit -- --run
2524

26-
publish-gpr:
25+
publish:
2726
needs: build
2827
runs-on: windows-latest
2928
permissions:
@@ -34,12 +33,11 @@ jobs:
3433
- uses: actions/setup-node@v3
3534
with:
3635
node-version: 16
37-
registry-url: https://npm.pkg.github.com/
3836
- name: Enable Corepack
3937
run: corepack enable
4038
- run: pnpm install
4139
- run: pnpm --filter "@uni-ra2/client-runtime" build
4240
- run: pnpm --filter "@uni-ra2/client-runtime" build:api
4341
- run: npm publish --workspace=ClientWebRuntime --tag ${{github.ref_name}}
4442
env:
45-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
43+
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}

0 commit comments

Comments
 (0)