Skip to content

chore: try using built-in GITHUB_TOKEN #48

chore: try using built-in GITHUB_TOKEN

chore: try using built-in GITHUB_TOKEN #48

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- "main"
permissions:
contents: write
jobs:
release-branch:
name: Publish branch
runs-on: ubuntu-latest
# needs: test
if: ${{ github.event_name == 'push' }}
environment: Production
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3
with:
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- run: pnpm release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}