diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d4232d9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Package release +on: + push: + branches: + - master +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Setup Node.js 20 + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install Dependencies + run: pnpm install --no-frozen-lockfile + + - name: Create Release Pull Request + id: changesets + uses: changesets/action@v1 + with: + title: 'Release styles' + commit: 'chore: publish pkg' + version: pnpm npm:version + publish: pnpm npm:publish + env: + GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}