Skip to content

Commit 4eea93a

Browse files
authored
ci: switch to changesets (#180)
* ci: switch to changesets * Fix pkg preview
1 parent 377e543 commit 4eea93a

File tree

15 files changed

+703
-136
lines changed

15 files changed

+703
-136
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/npm-publish.yml

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

.github/workflows/pkg-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
deno-version: vx.x.x
3434

3535
- name: Build package
36-
run: xargs deno task build:npm < version.txt
36+
run: deno task build:npm
3737

3838
- run: npx pkg-pr-new publish --compact ./npm

.github/workflows/release-please.yml

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

.github/workflows/release.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
id-token: write
17+
pull-requests: write
18+
repository-projects: write
19+
steps:
20+
- uses: navikt/github-app-token-generator@v1
21+
id: get-token
22+
with:
23+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
24+
app-id: ${{ secrets.APP_ID }}
25+
26+
- name: Checkout Repo
27+
uses: actions/checkout@v5
28+
with:
29+
persist-credentials: false
30+
fetch-depth: 0
31+
32+
- name: Setup Deno
33+
uses: denoland/setup-deno@v1
34+
with:
35+
deno-version: vx.x.x
36+
37+
- name: Setup Node
38+
uses: actions/setup-node@v6
39+
with:
40+
node-version: latest
41+
42+
- name: Install Dependencies
43+
run: deno install
44+
45+
# Update npm to latest version so that OIDC works correctly
46+
- name: Update npm
47+
run: npm install -g npm@latest
48+
49+
- name: Create Release Pull Request or Publish to npm
50+
id: changesets
51+
uses: changesets/action@v1
52+
with:
53+
version: npm run version
54+
publish: npm run release
55+
commit: "ci: release"
56+
title: "ci: release"
57+
env:
58+
GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}

.github/workflows/semantic-prs.yml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
npm
2+
node_modules
23
# Local Netlify folder
34
.netlify
45
.DS_Store

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@unpic/lib",
3-
"version": "4.0.0",
3+
"version": "4.2.1",
44
"exports": {
55
".": "./mod.ts",
66
"./async": "./src/async.ts",

0 commit comments

Comments
 (0)