Release #57
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: Release | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 3 * * 1' | |
jobs: | |
test-lint-build: | |
timeout-minutes: 3 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkouting repo | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Node setup | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Install deps | |
run: yarn install | |
- name: Run tests | |
run: yarn run test | |
- name: Run lint | |
run: yarn run lint --ignore-pattern ".github" | |
- name: Run Build | |
run: yarn run build | |
bump-package-version: | |
needs: test-lint-build | |
timeout-minutes: 4 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkouting repo | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Node setup | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Bump versions | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.name --local "github-actions[bot]" | |
git config user.email --local "github-actions[bot]@users.noreply.github.com" | |
git pull | |
npx --yes changelogen@latest gh relase | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
trigger-release: | |
needs: [test-lint-build, bump-package-version] | |
timeout-minutes: 1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger deployment | |
env: | |
TRIGGER_DEPLOYMENT: ${{ secrets.TRIGGER_DEPLOYMENT }} | |
shell: bash | |
run: curl -X POST $TRIGGER_DEPLOYMENT |