Skip to content

Commit f5582f6

Browse files
committed
CI
1 parent e8e9a06 commit f5582f6

File tree

5 files changed

+63
-2
lines changed

5 files changed

+63
-2
lines changed

.github/labels.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,8 @@
8282
description: "This PR causes a major version bump in the version number."
8383
- name: "minor"
8484
color: 0e8a16
85-
description: "This PR causes a minor version bump in the version number."
85+
description: "This PR causes a minor version bump in the version number."
86+
87+
- name: no-changelog
88+
description: Don't add to release changelog
89+
color: 0e8a16

.github/release-drafter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ version-resolver:
5050
- "performance"
5151
- "refactor"
5252
default: patch
53+
exclude-labels:
54+
- "no-changelog"
5355

5456
template: |
5557
# Music Assistant Queue Actions v$RESOLVED_VERSION

.github/workflows/pr-labels.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jobs:
2323
github-token: "${{ secrets.GITHUB_TOKEN }}"
2424
valid-labels: >-
2525
breaking-change, bugfix, documentation, enhancement,
26-
refactor, performance, new-feature, maintenance, ci, dependencies
26+
refactor, performance, new-feature, maintenance, ci, dependencies, no-changelog
2727
disable-reviews: true

.github/workflows/release-drafter.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ jobs:
1818
contents: write
1919
pull-requests: write
2020
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@v3
23+
- name: Get Version
24+
id: version
25+
run: |
26+
echo "pkg_version=$(jq -r '.version' package.json)" >> "${GITHUB_OUTPUT}"
2127
- name: Run Release Drafter
2228
uses: release-drafter/[email protected]
29+
with:
30+
tag: ${{ steps.version.outputs.pkg_version }}
31+
version: ${{ steps.version.outputs.pkg_version }}
2332
env:
2433
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
release:
5+
types:
6+
- published
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
build:
12+
name: Publish Release
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [22.x]
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: Prepare dependencies
24+
run: |
25+
echo "Get Node version"
26+
node --version
27+
echo "Install Yarn"
28+
npm install -g [email protected]
29+
echo "Check that we're running latest yarn..."
30+
which yarn
31+
- name: Cache Node.js modules
32+
uses: actions/cache@v3
33+
with:
34+
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
35+
key: ${{ runner.OS }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
36+
restore-keys: |
37+
${{ runner.OS }}-node-${{ matrix.node-version }}
38+
${{ runner.OS }}-
39+
- name: Install dependencies
40+
run: yarn install --frozen-lockfile
41+
- name: Build the project
42+
run: yarn rollup
43+
- name: Upload built source
44+
uses: softprops/action-gh-release@v2
45+
with:
46+
files: dist/mass-card.js

0 commit comments

Comments
 (0)