Switch external DAM integration to Lorem Picsum (#2918) #950
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 | |
concurrency: | |
group: release | |
cancel-in-progress: true | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Use Node.js 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
registry-url: "https://registry.npmjs.org" | |
cache: "pnpm" # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Copy schema files | |
run: pnpm run copy-schema-files | |
- name: Get version to be published | |
run: | | |
cd packages/admin/admin | |
echo "PUBLISHED_VERSION=$(pnpm pkg get version | sed -r 's/"//g')" >> $GITHUB_ENV | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: dotansimha/[email protected] | |
with: | |
version: pnpm run version | |
publish: pnpm run publish | |
createGithubReleases: aggregate | |
githubReleaseName: "${{ env.PUBLISHED_VERSION }}" | |
githubTagName: "v${{ env.PUBLISHED_VERSION }}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
HUSKY: 0 # https://typicode.github.io/husky/#/?id=with-env-variables |