Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webui Fix NPM Publish Step #2860

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 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
cmd: 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