-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnpm-package.yml
More file actions
35 lines (31 loc) · 814 Bytes
/
npm-package.yml
File metadata and controls
35 lines (31 loc) · 814 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
34
35
# Example workflow for npm packages
# Copy this file to your project's .github/workflows/release.yml
name: Release
on:
push:
branches:
- 'release/**'
- 'hotfix/**'
pull_request:
types: [closed]
branches: [main]
jobs:
release:
uses: banua-coder/banua-coder-workflow/.github/workflows/release.yml@v1
with:
project-type: npm-package
main-branch: main
develop-branch: develop
changelog-format: keepachangelog
node-version: '20'
secrets: inherit
# Publish when tag is pushed
publish:
if: startsWith(github.ref, 'refs/tags/')
needs: release
uses: banua-coder/banua-coder-workflow/.github/workflows/publish-npm.yml@v1
with:
node-version: '20'
access: public
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}