Skip to content

Commit c8aa6c2

Browse files
authored
Merge pull request #5 from ReforgeHQ/mfaga-release
fix: update release to use yarn
2 parents c48aa7f + 3f680e8 commit c8aa6c2

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
id-token: write
5454
outputs:
5555
published-version: ${{ needs.check-version.outputs.current-version }}
56+
env:
57+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5658
steps:
5759
- uses: actions/checkout@v4
5860
# Setup .npmrc file to publish to npm
@@ -76,12 +78,10 @@ jobs:
7678
- name: Publish to npm
7779
run: |
7880
if [ "${{ needs.check-version.outputs.is-prerelease }}" == "true" ]; then
79-
npm publish --provenance --access public --tag ${{ needs.check-version.outputs.npm-tag }}
81+
yarn npm publish --provenance --access public --tag ${{ needs.check-version.outputs.npm-tag }}
8082
else
81-
npm publish --provenance --access public
83+
yarn npm publish --provenance --access public
8284
fi
83-
env:
84-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8585
8686
create-release:
8787
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88

9+
env:
10+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
11+
912
steps:
1013
- uses: actions/checkout@v3
1114

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
nodeLinker: node-modules
2+
npmRegistryServer: 'https://registry.npmjs.org'
3+
npmAuthToken: '${NPM_AUTH_TOKEN}'

0 commit comments

Comments
 (0)