fixup! - [x] Remove npm ci and version steps from release.yml - [x] Add .goreleaser-dist to .gitignore - [x] Configure dist dir and before hook in goreleaser.yaml

This commit is contained in:
2026-03-11 22:43:04 +00:00
parent 0249d13265
commit ce4ad31750
8 changed files with 1061 additions and 3915 deletions
+10 -9
View File
@@ -27,6 +27,8 @@ jobs:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run typecheck
- run: npm run lint
- run: npm run build
- run: npm test
@@ -56,16 +58,15 @@ jobs:
- uses: actions/setup-node@v4
if: steps.version.outputs.version_tag != ''
with:
node-version: '24'
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Run GoReleaser
- name: Publish to npm
if: steps.version.outputs.version_tag != ''
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
run: |
npm ci
npm version ${{ steps.version.outputs.version }} --no-git-tag-version
npm publish --access public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}