fix(cloudflare): use the code for the geolocation region (#625) #423
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
# https://github.com/actions/checkout | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/pnpm-setup | |
- name: Install dependencies | |
run: pnpm install | |
- name: Check codestyle | |
run: pnpm lint | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
# https://github.com/changesets/action | |
uses: changesets/action@v1 | |
with: | |
createGithubReleases: false | |
version: pnpm run version | |
publish: pnpm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: View outputs | |
run: echo ${{join(steps.changesets.outputs.*, ' ')}} | |
- name: Aggregate | |
id: aggregate | |
if: steps.changesets.outputs.published == 'true' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
node ./.changeset/aggregate.mjs | |
- name: Create Release | |
if: steps.changesets.outputs.published == 'true' | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.aggregate.outputs.version }} | |
release_name: ${{ steps.aggregate.outputs.version }} | |
body: ${{ steps.aggregate.outputs.notes }} | |
draft: false | |
prerelease: false |