diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 06f7fea1..79c1f15b 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -44,8 +44,7 @@ jobs: - run: pnpm install - - name: Version and publish - run: | + - run: | echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc if [ -n "${{ inputs.custom_version }}" ]; then yarn lerna version ${{ inputs.custom_version }} --y --force-publish diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml new file mode 100644 index 00000000..d8fca89c --- /dev/null +++ b/.github/workflows/semantic-release.yml @@ -0,0 +1,23 @@ +name: Publish on NPM + +on: + push: + branches: + - feat/vitest + +jobs: + publish-to-npm: + name: Publish to NPM + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: pnpm + + - run: pnpm install + + - run: pnpm -r exec semantic-release --dry-run