Rewrite as native Node.js action using Octokit instead of gh CLI (v3.… #1
This file contains hidden or 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 GitHub Action' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: 20 | |
- name: install ncc | |
run: npm i -g @vercel/ncc | |
- uses: joshjohanning/publish-github-action@v1.4.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
npm_package_command: npm run package | |
commit_node_modules: false | |
publish_minor_version: false | |
publish_release_branch: false |