Skip to content

Commit acdbef4

Browse files
committed
chore: update GitHub Actions workflow to configure npm authentication for deployment
1 parent 9403364 commit acdbef4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release-version.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,12 @@ jobs:
5656
run: sqd auth -k $API_TOKEN
5757

5858
- name: Build and deploy squid
59-
run: sqd build && sqd deploy . -o origin --no-stream-logs --allow-update
59+
env:
60+
NODE_AUTH_TOKEN: ${{ github.token }}
61+
run: |
62+
cp .npmrc .npmrc.ci-backup
63+
trap 'mv .npmrc.ci-backup .npmrc' EXIT
64+
printf '\n//npm.pkg.github.com/:_authToken=%s\n' "$NODE_AUTH_TOKEN" >> .npmrc
65+
66+
sqd build
67+
sqd deploy . -o origin --no-stream-logs --allow-update

0 commit comments

Comments
 (0)