Skip to content

ci: 💚 limit action trigger #5

ci: 💚 limit action trigger

ci: 💚 limit action trigger #5

Workflow file for this run

name: Release
permissions:
actions: write
deployments: write
packages: write
pull-requests: write
issues: write
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [18]
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node_version: ${{ matrix.node_version }}
git_bot_token: ${{ secrets.GITHUB_TOKEN }}
- name: Test
uses: ./.github/actions/test
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: [test]
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
git_bot_token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: ./.github/actions/release
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}