-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from KID-joker/main
release 1.3.0
- Loading branch information
Showing
10 changed files
with
768 additions
and
903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Automated Release | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.15.0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build the project | ||
run: pnpm run build | ||
|
||
- name: Publish to npm | ||
run: pnpm publish -r --access public --publish-branch release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_CONFIG_PROVENANCE: true | ||
|
||
- name: Get version from package.json | ||
id: get_version | ||
run: | | ||
VERSION=$(node -p "require('./package.json').version") | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Create Git Tag | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "github-actions[bot]@users.noreply.github.com" | ||
git tag -a "v${VERSION}" -m "Release v${VERSION}" | ||
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/KID-joker/npm-deprecated-check.git "v${VERSION}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "npm-deprecated-check", | ||
"type": "module", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Check for deprecated packages", | ||
"author": "KID-joker <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -37,7 +37,6 @@ | |
"dev": "tsx ./src/cli.ts", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix", | ||
"release": "pnpm build && bumpp && pnpm publish --no-git-checks", | ||
"test": "node --test", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
|
@@ -58,7 +57,6 @@ | |
"@types/node": "^22.10.1", | ||
"@types/semver": "^7.5.8", | ||
"@types/yarnpkg__lockfile": "^1.1.9", | ||
"bumpp": "^9.8.1", | ||
"eslint": "^9.16.0", | ||
"lint-staged": "^15.2.10", | ||
"simple-git-hooks": "^2.11.1", | ||
|
Oops, something went wrong.