Skip to content

Commit 87e3a64

Browse files
chore: switched to NPM_AUTH_TOKEN for GH packages publish (#434)
* chore: switched to Node 12 for GH packages publish workflow * chore: convert to scoped package for GH package publishing
1 parent 2ae4ece commit 87e3a64

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish-github-packages.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
DIST_TAG: ${{ github.event.inputs.distTag }}
3434
strategy:
3535
matrix:
36-
node-version: [ 14.x ]
36+
node-version: [ 12.x ]
3737
steps:
3838
- name: Checkout
3939
uses: actions/checkout@v2
@@ -62,7 +62,9 @@ jobs:
6262
registry-url: 'https://npm.pkg.github.com'
6363

6464
- name: Publish
65-
env:
66-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6765
run: |
66+
sed -i 's,"name": "amplitude-js","name": "@amplitude/amplitude-js",' package.json
67+
cat package.json
6868
yarn publish --${{ env.PACKAGE_VERSION }} --tag ${{ env.DIST_TAG }} --no-git-tag-version
69+
env:
70+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)