fix workflow_dispatch in github-workflow config #195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: autodeploy | |
on: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
env: | |
CI: true | |
jobs: | |
publish-gpr: | |
name: Publish to GPR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set Git User | |
run: | | |
git config --global user.name "Power DCloud" | |
git config --global user.email "[email protected]" | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Bootstrap lerna | |
run: yarn lerna:init | |
- name: Bump versions and publish packages | |
run: | | |
yarn version:ci | |
yarn publish:ci | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMTOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |