Skip to content

Commit

Permalink
Push to NPM instead
Browse files Browse the repository at this point in the history
  • Loading branch information
drodrigues4 committed Jul 23, 2024
1 parent ab00e2a commit 0c14e0f
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release to GitHub
name: Release fork to NPM

on: workflow_dispatch

Expand Down Expand Up @@ -111,8 +111,8 @@ jobs:
- name: Build
working-directory: ${{ matrix.package }}
run: |
jq '.name="@singlestore-labs/${{ matrix.package }}"' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json
# jq '.publishConfig.registry="https://npm.pkg.github.com/"' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json
jq '.name="@drodrigues4/${{ matrix.package }}"' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json
jq '.version="0.32.1-${{ github.sha }}"' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json
jq 'del(.publishConfig.provenance)' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json
pnpm build
Expand Down Expand Up @@ -158,15 +158,14 @@ jobs:
working-directory: ${{ matrix.package }}
shell: bash
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
run: |
version=latest
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
echo "@singlestore-labs:registry=https://npm.pkg.github.com" >> .npmrc
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
echo "Publishing ${{ matrix.package }}@$version"
npm run publish
npm publish package.tgz --access public
echo "npm: \`+ ${{ matrix.package }}@$version\`" >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit 0c14e0f

Please sign in to comment.