From 61c4e8fda146de18e902564570ca2b9d8c0a34ef Mon Sep 17 00:00:00 2001 From: Septs Date: Mon, 27 Jul 2020 10:21:28 +0800 Subject: [PATCH] update publish to github script --- .github/workflows/nodejs.yml | 4 ++-- scripts/publish-to-github.sh | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 3f0f6ac..472e3d9 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 diff --git a/scripts/publish-to-github.sh b/scripts/publish-to-github.sh index 63d2441..be47580 100755 --- a/scripts/publish-to-github.sh +++ b/scripts/publish-to-github.sh @@ -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