v0.0.2 #3
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: Release | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
main: | |
name: 🎉 Release | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: ⤵️ Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: dev | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: "https://registry.npmjs.org" | |
- name: 🤖 Setup Bot | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
- name: 🛠️ Build | |
run: | | |
npm --no-git-tag-version version patch | |
git add -A | |
git commit -m "🤖 Update version" -a | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.PAT }} | |
title: Update version | |
body: Automated changes by Bot 🤖 | |
commit-message: 🤖 Update version | |
branch: bot/update-version | |
- name: 🛠️ Publish | |
run: | | |
yarn install | |
yarn build | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: "./dist" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |