Merge pull request #11 from david-plugge/changeset-release/main #14
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: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: {} | |
jobs: | |
release: | |
# prevents this action from running on forks | |
if: github.repository == 'david-plugge/tailwindcss-extend' | |
permissions: | |
contents: write # to create release (changesets/action) | |
pull-requests: write # to create pull request (changesets/action) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- run: | | |
pnpm install --frozen-lockfile | |
pnpm run build | |
- name: Create a release | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: pnpm ci:version | |
commit: 'chore: update version' | |
title: 'chore: update version' | |
publish: pnpm ci:release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |