Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
always-auth: true

- name: Update npm
run: |
npm install -g npm@11.7.0
npm -v

- name: Install dependencies
run: npm ci
Expand All @@ -63,8 +66,6 @@ jobs:
DEBUG: release-it:*,@release-it/*
HUSKY: 0
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
VERSION_ARG=""
if [ -n "${{ inputs.version }}" ]; then
Expand All @@ -83,7 +84,7 @@ jobs:
fi
NPM_TAG_ARG="--npm.tag=${NPM_TAG}"

npm run release -- --ci $PREID_ARG $NPM_TAG_ARG $VERSION_ARG
npx release-it --ci $PREID_ARG $NPM_TAG_ARG $VERSION_ARG

- name: Sync main → develop
uses: devmasx/merge-branch@v1.4.0
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ stats.html
.tool-versions
.cache
*-stats.txt
.npmrc
9 changes: 7 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env sh

# Husky pre-commit hook: format and run related tests on staged files
# Husky pre-commit hook: format and run related tests on staged files.
# We intentionally don't hide partially staged files so formatter changes are
# added to the same commit instead of being restored as unstaged changes.

npx --no -- lint-staged
set -eu

npx --no -- lint-staged --no-hide-partially-staged
git update-index --again
2 changes: 2 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Addon Stack <191148085+addon-stack@users.noreply.github.com> <addonbonedev@gmail.com>
Addon Stack <addon-stack@users.noreply.github.com> <addonbonedev@gmail.com>
7 changes: 5 additions & 2 deletions .release-it.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const types = new Map([
["perf", "⚡️ Performance Improvements"],
["refactor", "🛠️ Refactoring"],
["docs", "📝 Documentation"],
["test", "Tests"],
["test", "🧪 Tests"],
["build", "🏗️ Build System"],
["ci", "🤖 CI"],
["chore", "🧹 Chores"],
Expand Down Expand Up @@ -139,8 +139,11 @@ module.exports = () => {

npm: {
publish: true,
skipChecks: true,
provenance: true,
access: "public",
registry: "https://registry.npmjs.org/",
versionArgs: ["--no-git-tag-version"],
publishArgs: ["--provenance", "--access", "public"],
},

plugins: {
Expand Down
Loading
Loading