Skip to content

Commit 99dd997

Browse files
committed
Publish packages to npm
1 parent 3efd793 commit 99dd997

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,13 @@ jobs:
7171
with:
7272
node-version: 16.x
7373
cache: "npm"
74-
registry-url: "https://npm.pkg.github.com"
7574
scope: '@actions'
7675

7776
- name: Parse version from lerna.json
7877
run: |
7978
echo "PKG_VERSION=$(node -p -e "require('./lerna.json').version")" >> $GITHUB_ENV
8079
8180
- run: npm ci
82-
env:
83-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8481

8582
- name: Create release
8683
uses: actions/github-script@v6
@@ -100,8 +97,13 @@ jobs:
10097
core.summary.addLink(`Release v${{ env.PKG_VERSION }}`, release.data.html_url);
10198
await core.summary.write();
10299
100+
- name: setup authentication
101+
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
102+
env:
103+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
104+
103105
- name: Publish packages
104106
run: |
105107
lerna publish ${{ env.PKG_VERSION }} --yes --no-git-reset --no-git-tag-version
106108
env:
107-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)