diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9f526f2e..12c7dbdd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,6 +16,7 @@ permissions: jobs: release: runs-on: ubuntu-latest + environment: npm steps: - name: Get CI Bot Token uses: tibdex/github-app-token@v2 @@ -28,27 +29,23 @@ jobs: uses: actions/checkout@v4 with: token: ${{ steps.ci_bot_token.outputs.token }} - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "22" - registry-url: "https://registry.npmjs.org" - - name: Upgrade npm for OIDC trusted publishing - run: npm install -g npm@latest - - name: Configure OIDC auth - run: | - sed -i '/_authToken/d' "$NPM_CONFIG_USERCONFIG" - unset NODE_AUTH_TOKEN - - name: Install the dependencies - run: npm ci + - name: Initialize Git User run: | git config --global user.email "github-actions[bot]@genlayer.com" git config --global user.name "github-actions[bot]" + + - uses: actions/setup-node@v4 + with: + node-version: "22" + registry-url: "https://registry.npmjs.org" + + - run: npm install -g npm@latest + + - run: npm ci + - name: Release run: | - sed -i '/_authToken/d' "$NPM_CONFIG_USERCONFIG" - unset NODE_AUTH_TOKEN if [ "${{ github.ref_name }}" = "staging" ]; then npm run release-beta else diff --git a/package.json b/package.json index ba821318..cb42b667 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "genlayer", - "version": "0.34.0", + "version": "0.34.2", "description": "GenLayer Command Line Tool", "main": "src/index.ts", "type": "module", "bin": { "genlayer": "./dist/index.js" }, + "files": ["dist", "scripts", "templates", ".env.example", "README.md", "LICENSE"], "scripts": { "test": "vitest", "test:watch": "vitest --watch",