diff --git a/.github/workflows/release-github.yaml b/.github/workflows/release-github.yml similarity index 100% rename from .github/workflows/release-github.yaml rename to .github/workflows/release-github.yml diff --git a/.github/workflows/release-npm.yaml b/.github/workflows/release-npm.yml similarity index 60% rename from .github/workflows/release-npm.yaml rename to .github/workflows/release-npm.yml index bc9e1bf..4ea6150 100644 --- a/.github/workflows/release-npm.yaml +++ b/.github/workflows/release-npm.yml @@ -4,6 +4,10 @@ on: push: branches: [release/*] +permissions: + id-token: write + contents: read + jobs: publish-npm: name: Publish NPM module @@ -13,12 +17,9 @@ jobs: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 with: - node-version: '22.x' + node-version: '24.x' cache: 'npm' cache-dependency-path: package-lock.json - - run: npm ci - - run: npm run build - - uses: cucumber/action-publish-npm@v1.1.1 - with: - npm-token: ${{ secrets.NPM_TOKEN }} - npm-tag: 'latest' + registry-url: 'https://registry.npmjs.org' + - run: npm install-ci-test + - run: npm publish diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yml similarity index 100% rename from .github/workflows/site.yaml rename to .github/workflows/site.yml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/test.yaml rename to .github/workflows/test.yml diff --git a/package.json b/package.json index b7a4455..bc0e13d 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "exports:update": "api-extractor run --verbose --local", "fix": "eslint --max-warnings 0 src --fix && prettier --write src", "lint": "eslint --max-warnings 0 src && prettier --check src", - "test": "mocha \"src/**/*.spec.ts\"" + "test": "mocha \"src/**/*.spec.ts\"", + "prepublishOnly": "npm run build" }, "repository": { "type": "git",