chore: add workflows #9
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: Tag Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: "! contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies, build and tag. | |
run: | | |
pnpm install | |
composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs | |
pnpm run deploy | |
npx release-it patch --no-git --ci --dry-run --no-increment | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} |