This time with git conifg #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: Build and release | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
test-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install | |
- name: Set up git | |
run: | | |
git config user.name "github-action[bot]" | |
git config user.email "[email protected]" | |
- name: Tag | |
run: pnpm version minor | |
- name: Build | |
run: pnpm bump && pnpm build | |
env: | |
KEY: ${{ secrets.KEY }} | |
KEY_PASSPHRASE: ${{ secrets.KEY_PASSPHRASE }} | |
- name: Upload SWBN | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release | |
path: | | |
./dist/iwa-sink.swbnm | |
./update.json |