Skip to content

Commit

Permalink
Add NPM setup to publish (#6529)
Browse files Browse the repository at this point in the history
* Add NPM setup to publish

[skip ci]

* remove unnessary step

[skip ci]
  • Loading branch information
hoxbro authored Mar 19, 2024
1 parent 19f1d73 commit dd3da55
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,6 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
- name: Fetch unshallow
run: git fetch --prune --tags --unshallow -f
- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: npm setup
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_API_TOKEN }}" > $HOME/.npmrc
npm whoami
npm -v
- name: package install
run: |
python -m pip install -ve .
Expand Down Expand Up @@ -208,6 +200,11 @@ jobs:
run: |
echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "TARBALL=$(ls *.tgz)" >> $GITHUB_ENV
- name: npm setup
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_API_TOKEN }}" > $HOME/.npmrc
npm whoami
npm -v
- name: npm dev deploy
if: contains(env.TAG, 'a') || contains(env.TAG, 'b') || contains(env.TAG, 'rc')
run: |
Expand Down

0 comments on commit dd3da55

Please sign in to comment.