Skip to content

fix:update

fix:update #57

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 autotest
run: |
cd other/hbuilderx-autotest
npm publish --access public
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 cli
run: |
cd other/hbuilderx-cli
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}