chore: first attempt att configuring an automatic release flow

This commit is contained in:
Joakim Carlstein 2023-11-15 09:31:44 +01:00
parent d99777820c
commit 9484c03e48

37
.github/workflows/release.yaml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: pnpm/action-setup@v2.4.0
with:
version: 8.3.1
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.9.0
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Create Release Pull Request
uses: changesets/action@v1
with:
publish: pnpm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}