Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 6bd1d82

Browse files
committed
chore: change gpr action from npm to yarn
1 parent bc4ce8c commit 6bd1d82

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.github/workflows/test-runner.yml renamed to .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test-runner
1+
name: ci
22

33
on:
44
push:

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Code Scanning - Action"
1+
name: codeql
22

33
on:
44
push:

.github/workflows/npm-publish.yml renamed to .github/workflows/publish.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
4-
name: Node.js Package
1+
# Publishes latest unstable build to GPR
2+
name: publish
53

64
on:
75
push:
@@ -15,9 +13,9 @@ jobs:
1513
- uses: actions/setup-node@v2
1614
with:
1715
node-version: 12
18-
- run: npm ci
19-
- run: npm test
20-
16+
- run: yarn install --frozen-lockfile
17+
- run: yarn test
18+
2119
publish-gpr:
2220
needs: build
2321
runs-on: ubuntu-latest
@@ -30,7 +28,7 @@ jobs:
3028
with:
3129
node-version: 12
3230
registry-url: https://npm.pkg.github.com/
33-
- run: npm ci
34-
- run: npm publish
31+
- run: yarn install --frozen-lockfile
32+
- run: yarn publish
3533
env:
36-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
34+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)