Skip to content

fix:hbuilderx-cli update #54

fix:hbuilderx-cli update

fix:hbuilderx-cli update #54

Workflow file for this run

name: Publish Packages
on:
push:
branches: [main]
paths:
- "other/hbuilderx-autotest/**"
- "other/hbuilderx-cli/**"
- ".github/workflows/main.yml"
jobs:
publish-autotest:
if: contains(github.event.head_commit.message, 'hbuilderx-autotest') || contains(join(github.event.commits.*.modified), 'other/hbuilderx-autotest/') || contains(join(github.event.commits.*.added), 'other/hbuilderx-autotest/') || contains(join(github.event.commits.*.removed), 'other/hbuilderx-autotest/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Publish A
run: |
cd other/hbuilderx-autotest
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-cli:
if: contains(github.event.head_commit.message, 'hbuilderx-cli') || contains(join(github.event.commits.*.modified), 'other/hbuilderx-cli/') || contains(join(github.event.commits.*.added), 'other/hbuilderx-cli/') || contains(join(github.event.commits.*.removed), 'other/hbuilderx-cli/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Publish B
run: |
cd other/hbuilderx-cli
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}