This repository was archived by the owner on Apr 30, 2025. It is now read-only.
ci: shut crons down #314
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| Release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: google-github-actions/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3 | |
| id: release | |
| with: | |
| release-type: node | |
| bump-patch-for-minor-pre-major: true | |
| token: ${{ secrets.RELEASE }} | |
| labels: "Pending Release" | |
| release-labels: "Released" | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
| if: ${{ steps.release.outputs.release_created }} | |
| - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3 | |
| with: | |
| node-version: "18.x" | |
| cache: yarn | |
| registry-url: https://registry.yarnpkg.com/ | |
| if: ${{ steps.release.outputs.release_created }} | |
| - run: yarn --immutable && yarn build | |
| if: ${{ steps.release.outputs.release_created }} | |
| - run: npm link | |
| if: ${{ steps.release.outputs.release_created }} | |
| - run: ariaa | |
| if: ${{ steps.release.outputs.release_created }} | |
| - run: | | |
| yarn config set npmAuthToken ${NODE_AUTH_TOKEN} | |
| yarn config set npmPublishRegistry "https://registry.yarnpkg.com" | |
| yarn npm publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
| if: ${{ steps.release.outputs.release_created }} |