Skip to content

chore(release): use Trusted Publisher #18

chore(release): use Trusted Publisher

chore(release): use Trusted Publisher #18

Workflow file for this run

name: πŸš€ Auto Release
on:
push:
branches:
- main
jobs:
release:
runs-on: macos-latest
if: startsWith(github.event.head_commit.message , 'chore(release):')
permissions:
id-token: write
contents: read
env:
NODE_OPTIONS: '--max-old-space-size=8192'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: npm install
- name: lint
run: |
npm run lint
- name: build
run: |
npm run build
env:
CI: false
- name: test
run: |
npm run test
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run release