Skip to content

feat: support add&del #14

feat: support add&del

feat: support add&del #14

on:
push:
branches:
- main
name: release-please
permissions: {}
jobs:
release-please:
permissions:
contents: write # to create release commit (google-github-actions/release-please-action)
pull-requests: write # to create release PR (google-github-actions/release-please-action)
id-token: write # (JS-DevTools/npm-publish)
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm test
if: ${{ steps.release.outputs.release_created }}
- uses: JS-DevTools/npm-publish@v3
if: ${{ steps.release.outputs.release_created }}
with:
token: ${{secrets.NPM_TOKEN}}
access: public
provenance: true