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 d90b13d commit 61c4e8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: jgierer12/npm-auth-gpr@v1
- uses: NiceLabs/automatic-github-token@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: true
- name: Install
run: yarn install
- name: Test
Expand Down
4 changes: 1 addition & 3 deletions scripts/publish-to-github.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/bash
echo "@dimensiondev:registry=https://npm.pkg.github.com/DimensionDev" > "$HOME/.npmrc"

jq '.name = "@dimensiondev/holoflows-kit"' package.json > package-modified.json
mv package-modified.json package.json

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 61c4e8f

Please sign in to comment.