Skip to content

Commit 6b07e1b

Browse files
committed
ci: use changesets for versioning and publishing
1 parent d36c323 commit 6b07e1b

File tree

33 files changed

+799
-4219
lines changed

33 files changed

+799
-4219
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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "lingui/js-lingui" }],
4+
"commit": false,
5+
"fixed": [["@lingui/*"]],
6+
"linked": [],
7+
"ignore": [
8+
"*",
9+
"@lingui/remote-loader"
10+
],
11+
"access": "public",
12+
"baseBranch": "main",
13+
"updateInternalDependencies": "patch",
14+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
15+
"onlyUpdatePeerDependentsWhenOutOfRange": true,
16+
"updateInternalDependents": "always"
17+
}
18+
}

.github/workflows/release.yml

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

.github/workflows/version-next.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Version (next)
2+
3+
on:
4+
push:
5+
branches:
6+
- next
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Version
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: 'yarn'
24+
scope: '@lingui'
25+
26+
- name: Install dependencies
27+
run: yarn
28+
29+
- name: Create Release Pull Request
30+
uses: changesets/action@v1
31+
with:
32+
version: yarn version:next
33+
publish: yarn release:build && yarn release:next
34+
createGithubReleases: false
35+
branch: next
36+
commit: "chore(release): bump next version [skip ci]"
37+
title: "chore(release): bump next version"
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/version.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Version (latest)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Version
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: 'yarn'
24+
scope: '@lingui'
25+
26+
- name: Install dependencies
27+
run: yarn
28+
29+
- name: Create Release Pull Request
30+
uses: changesets/action@v1
31+
with:
32+
version: yarn version:latest
33+
publish: yarn release:build && yarn release:latest
34+
createGithubReleases: true
35+
commit: "chore(release): bump version [skip ci]"
36+
title: "chore(release): bump version"
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)