-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (31 loc) · 959 Bytes
/
push.yml
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
34
# This is a basic workflow to help you get started with Actions
name: NPM Publish
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
jobs:
publish:
name: Publish to NPM
uses: ./.github/workflows/npm_publish.yaml
secrets:
npm-token: ${{ secrets.NPM_TOKEN }}
release:
needs: [publish]
name: Create release notes
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get npm version
id: package-version
uses: martinbeentjes/[email protected]
- name: Generate release notes
run: gh release create v${{steps.package-version.outputs.current-version}} --generate-notes --target ${{github.sha}}
env:
GH_TOKEN: ${{ github.token }}