init
This commit is contained in:
commit
d295c7f139
1527 files changed
+270726
No files matched your search
@@ -0,0 +1,36 @@
|
||||
name: Release Please
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: googleapis/release-please-action@v5
|
||||
id: release
|
||||
with:
|
||||
config-file: release-please-config.json
|
||||
manifest-file: .release-please-manifest.json
|
||||
|
||||
# Publish the npm scaffolder only when a release was just created.
|
||||
# Runs in the same job because a release created via GITHUB_TOKEN does
|
||||
# not trigger separate `on: release` workflows.
|
||||
- uses: actions/checkout@v7
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
- uses: actions/setup-node@v6
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
with:
|
||||
node-version: 24
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
- name: Publish scaffolder to npm
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
run: npm publish --provenance --access public
|
||||
working-directory: scaffolder
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
Reference in new issue
Block a user