-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 893 Bytes
/
release.yml
File metadata and controls
33 lines (32 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Release
on:
push:
branches:
- main
paths:
- 'packages/fastify-renderer/package.json'
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/ci.yml
release:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-test-env
- name: Build all packages
run: pnpm build
- id: npm-publish
name: Publish fastify-renderer
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/fastify-renderer/package.json
access: public
- name: Publish Release to github
uses: softprops/action-gh-release@v1
if: ${{ steps.npm-publish.outputs.type != 'none' }}
with:
tag_name: ${{ steps.npm-publish.outputs.version }}
generate_release_notes: true