File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
66on :
77 release :
88 types : [prereleased]
99
1010jobs :
11- build :
11+ test :
1212 runs-on : windows-latest
1313 env :
1414 CI : 1
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 }}
You can’t perform that action at this time.
0 commit comments