Skip to content

Commit 083902b

Browse files
authored
Use changesets (#548)
* Use `changesets` * fix job
1 parent ec62159 commit 083902b

File tree

9 files changed

+9849
-6480
lines changed

9 files changed

+9849
-6480
lines changed

.changeset/README.md

+8
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

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config/schema.json",
3+
"changelog": [
4+
"@svitejs/changesets-changelog-github-compact",
5+
{
6+
"repo": "ota-meshi/eslint-plugin-regexp"
7+
}
8+
],
9+
"commit": false,
10+
"linked": [],
11+
"access": "restricted",
12+
"baseBranch": "master",
13+
"updateInternalDependencies": "patch",
14+
"bumpVersionsWithWorkspaceProtocolOnly": true,
15+
"ignore": []
16+
}

.env-cmdrc

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"version": {
33
"IN_VERSION_SCRIPT": "true"
4+
},
5+
"version-ci": {
6+
"IN_VERSION_CI_SCRIPT": "true"
47
}
58
}

.github/workflows/NpmPublish.yml

-26
This file was deleted.

.github/workflows/Release.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
release:
15+
name: Release
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v3
20+
with:
21+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
22+
fetch-depth: 0
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v3
25+
- name: Install Dependencies
26+
run: npm ci
27+
- name: Create Release Pull Request or Publish to npm
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
32+
version: npm run version:ci
33+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
34+
publish: npm run release
35+
commit: "chore: release eslint-plugin-regexp"
36+
title: "chore: release eslint-plugin-regexp"
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)