Skip to content

Commit

Permalink
feat: add auto release (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Jun 26, 2023
1 parent 2b5f494 commit fc7585c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release-please.yml
@@ -0,0 +1,28 @@
on:
push:
branches:
- main

name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
release-type: node
package-name: envinfo
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: yarn && yarn build
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
2 changes: 0 additions & 2 deletions dist/cli.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/envinfo.js

This file was deleted.

0 comments on commit fc7585c

Please sign in to comment.