This repository has been archived by the owner on May 31, 2024. It is now read-only.
Merge pull request #41 from lemoncloud-io/develop #8
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: | |
- master | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: {} | |
jobs: | |
release: | |
# IMPORTANT: prevent this action from running on forks | |
if: github.repository == 'lemoncloud-io/lemon-front-lib' | |
permissions: | |
contents: write | |
pull-requests: write | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 6.0.2 | |
- run: pnpm i | |
- name: Publish to pnpm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |