Merge pull request #32 from yxx4c/next #7
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: publish | |
on: | |
push: | |
branches: | |
- main | |
- next | |
- beta | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
name: publish | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
id-token: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set Up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Set Up Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install Project Dependencies | |
run: bun install | |
- name: Publish Package | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: bun run release |