generated from oliversalzburg/nodejs
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (42 loc) · 1.06 KB
/
pre-release.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
35
36
37
38
39
40
41
42
43
44
45
46
name: Pre-Release
on:
push:
branches:
- main
workflow_dispatch:
inputs:
wants-github-release:
default: false
description: Create a GitHub release?
required: false
type: boolean
concurrency: pre-release
jobs:
qa:
name: 🔹 QA
permissions:
contents: read
packages: read
uses: oliversalzburg/workflows/.github/workflows/qa-npm-package.yml@main
pre-release:
if: github.ref_name == github.event.repository.default_branch
name: 🔹 Publish
needs: qa
permissions:
contents: write
id-token: write
packages: write
pages: write
pull-requests: read
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: oliversalzburg/workflows/.github/workflows/publish-npm-package.yml@main
with:
has-mkdocs: false
has-github-pages: true
is-canary: true
publish-script: |
yarn run build
./.scripts/rebuild-package-structure.sh
cd ./dist-area/
wants-github-release: ${{ inputs.wants-github-release || false }}