Skip to content

Commit

Permalink
ci: fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinBol committed Nov 9, 2023
1 parent 69bc983 commit fd07103
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
with:
node-version: "12"
# Needed for publishing to npm
registry-url: "https://registry.npmjs.org"
registry-url: https://npm.pkg.github.com

# Run `npm ci && npm run build` to re-create your local environment (make sure to commit your - package-lock.json!).
- name: Build
Expand Down Expand Up @@ -91,6 +91,7 @@ jobs:
- name: Publish
if: github.ref == 'refs/heads/production'
run: |
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_AUTH_TOKEN }}
npm publish
VERSION="$(node -p "require('./package.json').version")"
echo package_version=${VERSION} >> $GITHUB_ENV
Expand All @@ -101,6 +102,7 @@ jobs:
- name: Publish to beta
if: github.ref == 'refs/heads/testing'
run: |
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_AUTH_TOKEN }}
npm publish --tag beta
VERSION="$(node -p "require('./package.json').version")@beta"
echo package_version=${VERSION} >> $GITHUB_ENV
Expand Down

0 comments on commit fd07103

Please sign in to comment.