diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8240586..8e8b7fb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,8 @@ jobs: publish: runs-on: ubuntu-latest permissions: - id-token: write + contents: read # Recommended for actions/setup-node + id-token: write # Required for OIDC steps: - uses: actions/checkout@v6 with: @@ -30,7 +31,7 @@ jobs: - uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: ".nvmrc" cache: "npm" always-auth: true registry-url: "https://registry.npmjs.org" @@ -40,6 +41,7 @@ jobs: rustup target add wasm32-wasip1 - run: npm run test + - run: npm run build - name: Set Git credentials @@ -63,4 +65,4 @@ jobs: tags: true - name: Publishing release - run: npm publish --non-interactive + run: npm publish diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..6ac2314 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v24.11.1 \ No newline at end of file diff --git a/package.json b/package.json index 09d76e2..dc712bc 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "homepage": "https://github.com/VKCOM/swc-plugin-css-modules", "repository": { "type": "git", - "url": "https://github.com/VKCOM/swc-plugin-css-modules.git" + "url": "git+https://github.com/VKCOM/swc-plugin-css-modules.git" }, "bugs": "https://github.com/VKCOM/swc-plugin-css-modules/issues", "main": "swc_plugin_css_modules.wasm", @@ -27,8 +27,5 @@ "swc_plugin_css_modules.wasm", "bindings/types.d.ts" ], - "preferUnplugged": true, - "publishConfig": { - "provenance": true - } + "preferUnplugged": true }