Skip to content

Commit 8eba1f4

Browse files
committed
Add release github action
1 parent 802b047 commit 8eba1f4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'packages/fastify-renderer/package.json'
8+
jobs:
9+
test:
10+
uses: ./.github/workflows/ci.yml
11+
release:
12+
needs: test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/[email protected]
16+
- uses: ./.github/actions/setup-test-env
17+
- name: Build all packages
18+
shell: nix develop -c bash -eo pipefail -l {0}
19+
run: yarn build
20+
- name: Publish fastify-renderer
21+
uses: JS-DevTools/npm-publish@v1
22+
with:
23+
token: ${{ secrets.NPM_TOKEN }}
24+
package: ./packages/fastify-renderer/package.json
25+
access: public

0 commit comments

Comments
 (0)