Skip to content

Commit 5a291e0

Browse files
authored
chore: merge pull request #10 from addon-stack/develop
Enhance storage features, update CI, and improve documentation
2 parents 0b943e0 + 65f3e9e commit 5a291e0

22 files changed

+2958
-2507
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ jobs:
4545
- name: Use Node.js
4646
uses: actions/setup-node@v4
4747
with:
48-
node-version: 20
48+
node-version: 22
4949
cache: 'npm'
50-
registry-url: 'https://registry.npmjs.org'
51-
always-auth: true
50+
51+
- name: Update npm
52+
run: |
53+
npm install -g npm@11.7.0
54+
npm -v
5255
5356
- name: Install dependencies
5457
run: npm ci
@@ -63,8 +66,6 @@ jobs:
6366
DEBUG: release-it:*,@release-it/*
6467
HUSKY: 0
6568
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
67-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6869
run: |
6970
VERSION_ARG=""
7071
if [ -n "${{ inputs.version }}" ]; then
@@ -83,7 +84,7 @@ jobs:
8384
fi
8485
NPM_TAG_ARG="--npm.tag=${NPM_TAG}"
8586
86-
npm run release -- --ci $PREID_ARG $NPM_TAG_ARG $VERSION_ARG
87+
npx release-it --ci $PREID_ARG $NPM_TAG_ARG $VERSION_ARG
8788
8889
- name: Sync main → develop
8990
uses: devmasx/merge-branch@v1.4.0

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ stats.html
1616
.tool-versions
1717
.cache
1818
*-stats.txt
19+
.npmrc

.husky/pre-commit

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env sh
22

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

5-
npx --no -- lint-staged
7+
set -eu
8+
9+
npx --no -- lint-staged --no-hide-partially-staged
10+
git update-index --again

.mailmap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Addon Stack <191148085+addon-stack@users.noreply.github.com> <addonbonedev@gmail.com>
2+
Addon Stack <addon-stack@users.noreply.github.com> <addonbonedev@gmail.com>

.release-it.cjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const types = new Map([
9797
["perf", "⚡️ Performance Improvements"],
9898
["refactor", "🛠️ Refactoring"],
9999
["docs", "📝 Documentation"],
100-
["test", "Tests"],
100+
["test", "🧪 Tests"],
101101
["build", "🏗️ Build System"],
102102
["ci", "🤖 CI"],
103103
["chore", "🧹 Chores"],
@@ -139,8 +139,11 @@ module.exports = () => {
139139

140140
npm: {
141141
publish: true,
142+
skipChecks: true,
143+
provenance: true,
144+
access: "public",
145+
registry: "https://registry.npmjs.org/",
142146
versionArgs: ["--no-git-tag-version"],
143-
publishArgs: ["--provenance", "--access", "public"],
144147
},
145148

146149
plugins: {

0 commit comments

Comments
 (0)