Skip to content

Commit

Permalink
Merge pull request #553 from m-shaka/specify-engines-field
Browse files Browse the repository at this point in the history
prepare major release
  • Loading branch information
supermacro authored Jul 17, 2024
2 parents d035e79 + b733676 commit 34b513f
Show file tree
Hide file tree
Showing 6 changed files with 3,297 additions and 1,289 deletions.
10 changes: 10 additions & 0 deletions .changeset/chilled-pugs-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'neverthrow': major
---

Declare the minimum supported Node.js version

`Neverthrow` does not depend on any Node.js version-specific features, so it should work with any version of Node.js that supports ES6 and other runtimes like Browser, Deno, etc.

However, for the sake of maintaining a consistent development environment, we should declare the minimum supported version of Node.js in the `engines` field of the `package.json` file.

16 changes: 16 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "supermacro/neverthrow"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

on:
push:
branches:
- master

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
create_pr:
name: Release
runs-on: ubuntu-latest
outputs:
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'

- run: npm i

- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
needs: create_pr
if: needs.create_pr.outputs.hasChangesets == 'false'
runs-on: ubuntu-latest
environment: deploy
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'

- run: npm i

- name: Release
run: npm run release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 34b513f

Please sign in to comment.