diff --git a/.github/workflows/npm-publish-prerelease.yml b/.github/workflows/npm-publish-prerelease.yml deleted file mode 100644 index 98330d4a..00000000 --- a/.github/workflows/npm-publish-prerelease.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: publish prerelease npm package - -on: - push: - branches: - - master - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 18 - registry-url: https://registry.npmjs.org/ - - run: | - npm version $(npm info | grep next | sed 's/^.*: //') --no-git-tag-version --allow-same-version - - run: npm install - - run: npm run build - - run: npm version prerelease --no-git-tag-version --allow-same-version --preid beta - - run: npm publish --tag next - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}} diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml deleted file mode 100755 index 4635ef99..00000000 --- a/.github/workflows/npm-publish.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: publish npm package - -on: - release: - types: [published] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 18 - registry-url: https://registry.npmjs.org/ - - name: Release latest package - run: | - npm --no-git-tag-version --allow-same-version version ${{ github.event.release.name }} - npm install - npm run build - npm publish --access public - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}} - - name: Release next package - run: | - npm version --no-git-tag-version --allow-same-version ${{ github.event.release.name }}-dev - npm version prerelease --no-git-tag-version --allow-same-version --preid beta - npm publish --tag next - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}