Merge pull request #126 from chromaui/fix-dist-config #124
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] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.AUTO_RELEASE_TOKEN_GHENGEVELD }} | |
- name: Prepare repository | |
run: git fetch --unshallow --tags | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Create Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
pnpm install | |
pnpm run prepublish | |
pnpm run release |