diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 56df40a..b0fb36e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,16 +10,17 @@ jobs: permissions: contents: read id-token: write + steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ - name: Install the latest version of the npm CLI - run: npm install -g npm@10 #todo upgrade to the latest + run: npm install -g npm@latest - name: Install dependencies, build run: | @@ -28,14 +29,8 @@ jobs: - name: Publish 'latest' if: ${{ github.event.action == 'released' }} - run: | - npm publish --provenance - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm publish --provenance - name: Publish 'next' if: ${{ github.event.action == 'prereleased' }} - run: | - npm publish --tag next --provenance - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm publish --tag next --provenance diff --git a/package-lock.json b/package-lock.json index b82ea0d..4a10483 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@crowdin/ota-client", - "version": "2.0.1", + "version": "2.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@crowdin/ota-client", - "version": "2.0.1", + "version": "2.0.2", "license": "MIT", "devDependencies": { "@eslint/js": "^9.20.0", diff --git a/package.json b/package.json index 0d120a6..a9aaea2 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "@crowdin/ota-client", - "version": "2.0.1", + "version": "2.0.2", "description": "JavaScript library for Crowdin OTA Content Delivery", "main": "out/index.js", "types": "out/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/crowdin/ota-client-js.git" + "url": "git+https://github.com/crowdin/ota-client-js.git" }, "files": [ "out/**/*"