diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..16ff7879d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + name: 'Tagged Release' + runs-on: 'ubuntu-latest' + + steps: + - uses: actions/checkout@v4 + - uses: wyvox/action-setup-pnpm@v3 + with: + node-registry-url: "https://registry.npmjs.org" + - run: pnpm build + + # > This is not interactive right? + # correct + # + # > This doesn't bump the version, just publish right? + # correct + # + # > Do we have a way to tell it to ignore already published packages in case we need to re-run the job? + # this is default behavior + # + # > It will skip the private packages, presumably? + # yes + - run: pnpm -r publish --access public + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}