diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 2abb66d..c5b5117 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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) diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 4dab091..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -@dimensiondev:registry=https://npm.pkg.github.com/ diff --git a/scripts/publish-to-github.sh b/scripts/publish-to-github.sh index 08696e8..dddddb8 100755 --- a/scripts/publish-to-github.sh +++ b/scripts/publish-to-github.sh @@ -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