testing workflow deploy 6 (no version update; expect error) #1
Workflow file for this run
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: publish | |
#on: | |
# workflow_run: ["develop"] | |
# workflow_dispatch: | |
#jobs: | |
# new file: publish.yml - publish to NPM -> then deploy (needs publish to succeed); | |
# deploy: | |
# runs-on: ubuntu-22.04 | |
# needs: test # needs develop.yml to succeed | |
# if: github.ref == 'refs/heads/release' | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: build | |
# run: | | |
# yarn install | |
# yarn build-app | |
# - name: gh-pages | |
# uses: peaceiris/actions-gh-pages@v3 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# publish_dir: dist/app/ | |
# keep_files: true | |
# registry-url: 'https://registry.npmjs.org' | |
# - run: npm publish --provenance --access public | |
# env: | |
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# | |
# deploy-artifact: | |
# runs-on: ubuntu-22.04 | |
# needs: deploy | |
#if: github.ref == 'refs/heads/release' #condition is same as deploy's | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: build | |
# run: | | |
# yarn install | |
# yarn build-artifact | |
# - name: gh-pages | |
# uses: peaceiris/actions-gh-pages@v3 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# publish_dir: dist/artifact/ | |
# keep_files: true |