Skip to content

Commit

Permalink
update publish to github script
Browse files Browse the repository at this point in the history
  • Loading branch information
septs committed Jul 31, 2020
1 parent f583854 commit 7de6117
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: NiceLabs/automatic-github-token@v1
- uses: NiceLabs/automatic-github-token@v2
with:
registry: true
- name: Install and Test
run: npm cit
- name: Publish to GitHub Package (unstable)
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/publish-to-github.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
VERSION=$(jq -r '.version' package.json)
npm --no-git-tag-version version "$VERSION-$GITHUB_RUN_NUMBER"
npm --no-git-tag-version version "$VERSION-$BUILD_VERSION"
npm publish

0 comments on commit 7de6117

Please sign in to comment.