diff --git a/.github/workflows/publish_npm_package.yml b/.github/workflows/publish_npm_package.yml index 1101685d..e0773dd3 100644 --- a/.github/workflows/publish_npm_package.yml +++ b/.github/workflows/publish_npm_package.yml @@ -2,8 +2,6 @@ name: Release on: release: types: [published] - push: - branches: [main] permissions: contents: read # for checkout @@ -23,7 +21,6 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 with: fetch-depth: 0 - token: ${{ secrets.CI_GITHUB_TOKEN }} - name: Setup Node.js uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 with: @@ -34,12 +31,8 @@ jobs: run: npm clean-install - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies run: npm audit signatures - - name: Prepublish - run: npm run prepublish - - name: Release - if: success() + - name: Publish + run: npm publish --access public env: - CI: true - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN}} - run: npx semantic-release + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + shell: bash diff --git a/package.json b/package.json index b38bd59a..e86a347d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@deriv-com/ui", "private": false, - "version": "1.10.4", + "version": "1.10.5", "type": "module", "main": "dist/main.js", "files": [