Skip to content

Commit ab8b528

Browse files
committed
ci: switch to github actions, npm trusted publishing
Signed-off-by: Pascal Sthamer <[email protected]>
1 parent d0125e0 commit ab8b528

File tree

4 files changed

+82
-26
lines changed

4 files changed

+82
-26
lines changed

.circleci/config.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- next
8+
9+
permissions:
10+
# required for npm trusted publishing with OIDC.
11+
# https://docs.npmjs.com/trusted-publishers#step-2-configure-your-cicd-workflow
12+
# https://github.com/semantic-release/npm?tab=readme-ov-file#trusted-publishing-from-github-actions
13+
contents: write # to be able to publish a GitHub release
14+
issues: write # to be able to comment on released issues
15+
pull-requests: write # to be able to comment on released pull requests
16+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
17+
18+
jobs:
19+
release:
20+
name: Release
21+
runs-on: ubuntu-24.04
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
25+
26+
- name: Install pnpm
27+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
31+
with:
32+
node-version: 24.11.1
33+
cache: pnpm
34+
35+
- name: Install dependencies
36+
run: pnpm install
37+
38+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
39+
run: npm audit signatures
40+
41+
- name: Prepare
42+
run: pnpm run dev:prepare
43+
44+
- name: Lint
45+
run: pnpm run lint
46+
47+
- name: Release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: pnpm exec semantic-release

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
name: Test
9+
runs-on: ubuntu-24.04
10+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
14+
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
20+
with:
21+
node-version: 24.11.1
22+
cache: pnpm
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- name: Lint
28+
run: pnpm run lint
29+
30+
- name: Build dev playground
31+
run: pnpm run dev:build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nuxt Headless UI ![CircleCI](https://circleci.com/gh/P4sca1/nuxt-headlessui.svg?style=svg)
1+
# Nuxt Headless UI
22

33
[![npm version][npm-version-src]][npm-version-href]
44
[![npm downloads][npm-downloads-src]][npm-downloads-href]

0 commit comments

Comments
 (0)