Skip to content

Commit

Permalink
release: change releases to use changelogithub
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed Jan 30, 2024
1 parent 5e322ca commit 72218b3
Show file tree
Hide file tree
Showing 4 changed files with 319 additions and 1,484 deletions.
57 changes: 12 additions & 45 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: release
on:
workflow_dispatch:
inputs:
version:
type: choice
description: Version number to increment
required: true
default: minor
options:
- patch
- minor
- major
push:
tags:
- v1.*
- v2.*

permissions:
contents: write

jobs:
release:
Expand All @@ -29,11 +25,8 @@ jobs:
with:
node-version: 20.x
cache: pnpm
- run: pnpm ci
- name: Check types
run: pnpm run build:types
- name: Generate Bundle
run: pnpm run build:bundle
- run: pnpm i
- run: pnpm run build
# We need to make sure the checked-in `index.mjs` actually matches what we expect it to be.
- name: Compare the expected and actual dist/ directories
run: |
Expand All @@ -42,32 +35,6 @@ jobs:
git diff
exit 1
fi
id: diff
# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: dist/
- name: test
id: test
if: ${{ always() }}
run: pnpm run test -- --coverage
- name: lint
if: ${{ always() }}
run: pnpm run lint
- name: style
if: ${{ always() }}
run: pnpm run format:check
- name: config git user
run: |
git config --global user.name ${{ secrets.ACTION_GITHUB_USERNAME }};
git config --global user.email ${{ secrets.ACTION_GITHUB_EMAIL }};
- name: perform release
run: |
pnpm run release \
${{ github.event.inputs.version }} \
--ci
- name: codecov # Perform after version publishing
if: steps.test.outcome == 'success'
uses: codecov/codecov-action@v3
- run: pnpm exec changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
14 changes: 0 additions & 14 deletions .release-it.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
"@typescript-eslint/parser": "^6.20.0",
"@vitest/coverage-v8": "^1.2.2",
"chalk": "^5.3.0",
"changelogithub": "^0.13.3",
"esbuild": "^0.20.0",
"eslint": "^8.56.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-github": "^4.10.1",
"eslint-plugin-import": "^2.29.1",
"prettier": "3.2.4",
"release-it": "^17.0.3",
"typescript": "^5.3.3",
"vitest": "^1.2.2"
}
Expand Down
Loading

0 comments on commit 72218b3

Please sign in to comment.