Skip to content

Commit 41240cb

Browse files
authored
Merge pull request #61 from thefrontside/swap-to-covector
swap to covector for releases
2 parents 1717088 + 62701e3 commit 41240cb

12 files changed

Lines changed: 3510 additions & 3114 deletions
File renamed without changes.

.changes/config.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"gitSiteUrl": "https://github.com/thefrontside/javascript/",
3+
"pkgManagers": {
4+
"javascript": {
5+
"version": true,
6+
"getPublishedVersion": {
7+
"use": "fetch:check",
8+
"options": {
9+
"url": "https://registry.npmjs.com/${ pkg.pkg }/${ pkg.pkgFile.version }"
10+
}
11+
},
12+
"publish": [
13+
"npm publish --provenance --access public"
14+
]
15+
}
16+
},
17+
"packages": {
18+
"@frontside/eslint-config": {
19+
"path": "./packages/eslint-config",
20+
"manager": "javascript",
21+
"dependencies": [
22+
"eslint-plugin-prefer-let"
23+
]
24+
},
25+
"eslint-plugin-prefer-let": {
26+
"path": "./packages/eslint-plugin-prefer-let",
27+
"manager": "javascript"
28+
},
29+
"@frontside/tsconfig": {
30+
"path": "./packages/tsconfig",
31+
"manager": "javascript"
32+
},
33+
"@frontside/typescript": {
34+
"path": "./packages/typescript",
35+
"manager": "javascript",
36+
"dependencies": [
37+
"@frontside/tsconfig"
38+
]
39+
}
40+
}
41+
}

.changes/readme.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Changes
2+
3+
##### via https://github.com/jbolda/covector
4+
5+
As you create PRs and make changes that require a version bump, please add a new markdown file in this folder. You do not note the version _number_, but rather the type of bump that you expect: major, minor, or patch. The filename is not important, as long as it is a `.md`, but we recommend that it represents the overall change for organizational purposes.
6+
7+
When you select the version bump required, you do _not_ need to consider dependencies. Only note the package with the actual change, and any packages that depend on that package will be bumped automatically in the process.
8+
9+
Use the following format:
10+
11+
```md
12+
---
13+
"package-a": patch
14+
"package-b": minor
15+
---
16+
17+
Change summary goes here
18+
19+
```
20+
21+
Summaries do not have a specific character limit, but are text only. These summaries are used within the (future implementation of) changelogs. They will give context to the change and also point back to the original PR if more details and context are needed.
22+
23+
Changes will be designated as a `major`, `minor` or `patch` as further described in [semver](https://semver.org/).
24+
25+
Given a version number MAJOR.MINOR.PATCH, increment the:
26+
27+
- MAJOR version when you make incompatible API changes,
28+
- MINOR version when you add functionality in a backwards compatible manner, and
29+
- PATCH version when you make backwards compatible bug fixes.
30+
31+
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format, but will be discussed prior to usage (as extra steps will be necessary in consideration of merging and publishing).

.changeset/config.json

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

.github/workflows/changeset.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: covector comment
2+
on:
3+
workflow_run:
4+
workflows: [covector status] # the `name` of the workflow run on `pull_request` running `status` with `comment: true`
5+
types:
6+
- completed
7+
8+
# note all other permissions are set to none if not specified
9+
# and these set the permissions for `secrets.GITHUB_TOKEN`
10+
permissions:
11+
# to read the action artifacts on `covector status` workflows
12+
actions: read
13+
# to write the comment
14+
pull-requests: write
15+
16+
jobs:
17+
download:
18+
runs-on: ubuntu-latest
19+
if: github.event.workflow_run.conclusion == 'success' &&
20+
(github.event.workflow_run.head_repository.full_name != github.repository || github.actor == 'dependabot[bot]')
21+
steps:
22+
- name: covector status
23+
uses: jbolda/covector/packages/action@covector-v0
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
command: "status"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: covector status
2+
on: [pull_request]
3+
4+
jobs:
5+
covector:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0 # required for use of git history
12+
- name: covector status
13+
uses: jbolda/covector/packages/action@covector-v0
14+
id: covector
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
command: "status"
18+
comment: true
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: version or publish
2+
3+
on:
4+
push:
5+
branches:
6+
- v*
7+
8+
permissions:
9+
# required for npm provenance
10+
id-token: write
11+
# required to create the GitHub Release
12+
contents: write
13+
# required for creating the Version Packages Release
14+
pull-requests: write
15+
16+
jobs:
17+
version-or-publish:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 65
20+
outputs:
21+
change: ${{ steps.covector.outputs.change }}
22+
commandRan: ${{ steps.covector.outputs.commandRan }}
23+
successfulPublish: ${{ steps.covector.outputs.successfulPublish }}
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0 # required for use of git history
29+
- uses: actions/setup-node@v3
30+
with:
31+
registry-url: "https://registry.npmjs.org"
32+
- uses: volta-cli/action@v4
33+
- name: git config
34+
run: |
35+
git config --global user.name "${{ github.event.pusher.name }}"
36+
git config --global user.email "${{ github.event.pusher.email }}"
37+
- name: covector version or publish (publish when no change files present)
38+
uses: jbolda/covector/packages/action@covector-v0
39+
id: covector
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
with:
43+
token: ${{ secrets.GITHUB_TOKEN }}
44+
command: "version-or-publish"
45+
createRelease: true
46+
recognizeContributors: true
47+
- name: sync lockfile
48+
if: steps.covector.outputs.commandRan == 'version'
49+
run: yarn install
50+
- name: Create Pull Request With Versions Bumped
51+
id: cpr
52+
uses: peter-evans/create-pull-request@v6
53+
if: steps.covector.outputs.commandRan == 'version'
54+
with:
55+
token: ${{ secrets.GITHUB_TOKEN }}
56+
title: "Publish New Versions"
57+
commit-message: "publish new versions"
58+
labels: "version updates"
59+
branch: "release"
60+
body: ${{ steps.covector.outputs.change }}

.github/workflows/preview.yml

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

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)