2023-08-08 23:59:44 +02:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
2023-08-09 21:43:50 +02:00
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
|
2023-08-08 23:59:44 +02:00
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
if: ${{ github.repository_owner == 'cloudflare' }}
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
2023-08-09 22:17:25 +02:00
|
|
|
permissions:
|
2023-08-09 23:39:06 +02:00
|
|
|
id-token: write
|
2023-08-09 22:17:25 +02:00
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
|
|
|
issues: read
|
2023-08-08 23:59:44 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: "latest"
|
|
|
|
cache: "npm"
|
|
|
|
|
|
|
|
- name: Install modules
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Create Version PR
|
|
|
|
id: changesets
|
|
|
|
uses: changesets/action@v1
|
|
|
|
with:
|
2023-08-09 21:43:40 +02:00
|
|
|
createGithubReleases: true
|
2023-08-08 23:59:44 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|