Skip to content

Commit

Permalink
update gh actions for yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
doman412 committed Dec 20, 2020
1 parent 371d128 commit fbd29b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gpr_publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package
name: GH Package Release

on:
release:
Expand All @@ -15,8 +15,8 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
- run: yarn ci
- run: yarn test

publish-gpr:
needs: build
Expand All @@ -27,7 +27,7 @@ jobs:
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
- run: yarn ci
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"test_o": "ts-mocha tests/**/*.spec.ts",
"test:e2e": "ts-mocha tests/e2e/**/*.spec.ts",
"test:performance": "ts-mocha tests/performance/**/*.spec.ts",
"build:test": "npm run build && npm run test",
"prepublishOnly": "npm run build"
"build:test": "yarn run build && yarn run test",
"prepublishOnly": "yarn run build"
},
"files": [
"dist",
Expand Down

0 comments on commit fbd29b4

Please sign in to comment.