Skip to content

Commit b72dc91

Browse files
committed
test different npm token approach
1 parent 76d64eb commit b72dc91

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release-snapshot.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: ./.github/actions/gh-setup
14-
- name: Create Snapshot Release
14+
- name: Creating .npmrc
15+
run: |
16+
cat << EOF > "$HOME/.npmrc"
17+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
18+
EOF
1519
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1720
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
21+
- name: Create Snapshot Release
1822
run: |
1923
yarn run version-packages --snapshot "${{ github.ref_name }}"
2024
echo '---'

0 commit comments

Comments
 (0)