Skip to content

Commit 9546fe1

Browse files
committed
Add release-please
1 parent 90c96ef commit 9546fe1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: google-github-actions/release-please-action@v3
13+
id: release
14+
with:
15+
release-type: node
16+
package-name: container-query-polyfill
17+
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: '16.x'
22+
if: ${{ steps.release.outputs.release_created }}
23+
- run: npm install
24+
if: ${{ steps.release.outputs.release_created }}
25+
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: '16.x'
29+
registry-url: 'https://wombat-dressing-room.appspot.com/'
30+
if: ${{ steps.release.outputs.release_created }}
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
34+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)