Skip to content

Commit af73ee4

Browse files
committed
feat: add release-please integration
1 parent f5e4155 commit af73ee4

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
name: release-please
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: GoogleCloudPlatform/[email protected]
11+
with:
12+
token: ${{ secrets.GITHUB_TOKEN }}
13+
release-type: node
14+
package-name: release-please-action
15+
- uses: actions/checkout@v2
16+
if: ${{ steps.release.outputs.release_created }}
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
registry-url: 'https://registry.npmjs.org'
21+
if: ${{ steps.release.outputs.release_created }}
22+
- run: npm ci
23+
if: ${{ steps.release.outputs.release_created }}
24+
- run: npm publish
25+
env:
26+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
27+
if: ${{ steps.release.outputs.release_created }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"dev": "nodemon --watch src -e ts --exec npm run dev:start",
2020
"docs": "typedoc --out docs src/",
2121
"fix": "node ./node_modules/eslint/bin/eslint --fix src/**/*.ts src/**/*.tsx",
22+
"prepare": "npm run dev:start",
2223
"test": "ava"
2324
},
2425
"ava": {

0 commit comments

Comments
 (0)