name: Release on: push: tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: test: uses: ./.github/workflows/test.yml release: # prevents this action from running on forks if: github.repository == 'vuejs/core' needs: [test] runs-on: ubuntu-latest permissions: contents: write id-token: write # Use Release environment for deployment protection environment: Release steps: - name: Checkout uses: actions/checkout@v6 - name: Setup Vite+ uses: voidzero-dev/setup-vp@v1 with: node-version-file: '.node-version' cache: true - name: Update npm run: npm i -g npm@latest - name: Build and publish id: publish run: | vp run release --publishOnly - name: Create GitHub release id: release_tag uses: yyx990803/release-tag@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} body: | For stable releases, please refer to [CHANGELOG.md](https://github.com/vuejs/core/blob/main/CHANGELOG.md) for details. For pre-releases, please refer to [CHANGELOG.md](https://github.com/vuejs/core/blob/minor/CHANGELOG.md) of the `minor` branch.