Skip to content

Commit

Permalink
chore: Fix Github Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalanamini committed Sep 5, 2020
1 parent 1909038 commit d90023e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,3 @@ jobs:
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
name: Publish to Github Packages
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"build": "tsc",
"watch": "npm run build -- --watch",
"prepublishOnly": "npm run lint && npm test && node scripts/prepare.js",
"prepublishOnly": "node scripts/prepare.js",
"lint": "eslint src",
"format": "npm run format:prettier && npm run format:eslint",
"format:prettier": "prettier --write src",
Expand Down

0 comments on commit d90023e

Please sign in to comment.