diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..fbd13d154 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: ci + +on: + push: + branches: + - main + - ci/release-nightly + +permissions: {} + +jobs: + release: + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }} + permissions: + id-token: write + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + fetch-depth: 0 + - run: corepack enable + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + with: + node-version: 20 + cache: "pnpm" + + - name: Install dependencies + run: pnpm install + + - name: nightly release + run: pnpm changelogen --canary nightly --publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + NPM_CONFIG_PROVENANCE: true