Merge pull request #72 from tetarchus/next #26
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 Storybook Addon | |
on: | |
push: | |
branches: main | |
jobs: | |
release: | |
permissions: | |
contents: write | |
issues: write | |
runs-on: ubuntu-latest | |
if: | |
"!contains(github.event.head_commit.message, 'ci skip') && | |
!contains(github.event.head_commit.message, 'skip ci')" | |
# TODO: Check labels? | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare repository | |
run: git fetch --unshallow --tags | |
- uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version-file: .nvmrc | |
- name: Install Dependencies | |
run: npm ci | |
- name: Create Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
npm run release |