Skip to content

Commit 4162bf7

Browse files
committed
chore: update-snapshot-yml
pass in a npmrc file command to add auth token to it. doesnt seem to respect it as an env variable
1 parent b08a9b9 commit 4162bf7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/snapshot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ jobs:
7272
./**/.playwright/**
7373
retention-days: 30
7474

75+
- name: Update npmrc
76+
run: |
77+
cat << EOF > ".npmrc"
78+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
79+
//npm.petrov.ca/:_authToken=$NPM_TOKEN
80+
EOF
81+
env:
82+
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
7583
- name: Version Packages as Beta
7684
run: pnpm changeset version --snapshot beta
7785
env:

0 commit comments

Comments
 (0)