Skip to content

Commit

Permalink
Fix npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbaldwin44 committed Aug 19, 2024
1 parent 3bcc779 commit 9e4ba64
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,24 @@ jobs:
node-version: 20.x
- uses: borales/actions-yarn@v5
with:
cmd: webui:install
cmd: install
dir: locust/webui
- uses: borales/actions-yarn@v5
with:
cmd: webui:build
cmd: build
dir: locust/webui
- uses: borales/actions-yarn@v5
with:
cmd: webui:test
cmd: test
dir: locust/webui
- uses: borales/actions-yarn@v5
with:
cmd: webui:lint
dir: locust/webui
- uses: borales/actions-yarn@v5
with:
cmd: webui:type-check
cmd: type-check
dir: locust/webui

verify_docker_build:
name: Always - Docker verify, push to tag 'master' if on master
Expand Down Expand Up @@ -224,6 +229,7 @@ jobs:
name: Publish package on NPM
with:
cmd: publish --no-git-tag-version --non-interactive --new-version ${{ github.ref_name }}
dir: locust/webui
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# The following is disabled because it has stopped working.
Expand Down Expand Up @@ -285,5 +291,6 @@ jobs:
name: Publish package on NPM
with:
cmd: publish --no-git-tag-version --non-interactive --tag next --new-version ${{ env.TAG }}-next-${{ github.run_id }}
dir: locust/webui
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "locust",
"private": true,
"license": "MIT",
"scripts": {
"webui:install": "cd locust/webui && yarn install",
Expand Down

0 comments on commit 9e4ba64

Please sign in to comment.