From 11993cbab3c27f0593145bcc01291ad1953c3b2f Mon Sep 17 00:00:00 2001 From: rare-magma Date: Sun, 23 Jun 2024 11:52:59 +0200 Subject: [PATCH] ci: simplify actions flow Signed-off-by: rare-magma --- .github/workflows/publish.yml | 39 ---------------- .github/workflows/release.yml | 34 ++++++++++++-- CHANGELOG.md | 85 ----------------------------------- 3 files changed, 30 insertions(+), 128 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 9808869e..00000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Publish -on: - release: - types: [published] -jobs: - publish: - name: publish to cloudflare pages - runs-on: ubuntu-latest - permissions: - contents: read - deployments: write - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - persist-credentials: false - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 9.4.0 - - - name: Setup Node - uses: actions/setup-node@v4 - with: - cache: "pnpm" - - - name: Install dependencies - run: pnpm install - - - name: Build - run: pnpm build - - - name: Deploy to Cloudflare Pages - uses: cloudflare/wrangler-action@v3 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy build --project-name=guitos diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b6c81da1..a78c911d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,13 +95,39 @@ jobs: changelog-file: CHANGELOG.md prepend: true - - name: Update changelog & bump package.json + - name: Commit changelog & package.json updates if: steps.semrel.outputs.version != '' run: | git config user.name 'github-actions[bot]' git config user.email '41898282+github-actions[bot]@users.noreply.github.com' git add CHANGELOG.md package.json git commit -m "chore(release): ${{ steps.semrel.outputs.version }}" - git push --delete https://${{ secrets.SEMANTIC_RELEASE_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git v${{ steps.semrel.outputs.version }} - git tag v${{ steps.semrel.outputs.version }} - git push --tags https://${{ secrets.SEMANTIC_RELEASE_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git main + git push https://${{ secrets.SEMANTIC_RELEASE_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git main + + - name: Install pnpm + if: steps.semrel.outputs.version != '' + uses: pnpm/action-setup@v4 + with: + version: 9.4.0 + + - name: Setup Node + if: steps.semrel.outputs.version != '' + uses: actions/setup-node@v4 + with: + cache: "pnpm" + + - name: Install dependencies + if: steps.semrel.outputs.version != '' + run: pnpm install + + - name: Build + if: steps.semrel.outputs.version != '' + run: pnpm build + + - name: Deploy to Cloudflare Pages + if: steps.semrel.outputs.version != '' + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy build --project-name=guitos diff --git a/CHANGELOG.md b/CHANGELOG.md index 99e7a4df..59f371cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,88 +1,3 @@ -## 1.0.0 (2024-06-23) - -#### Bug Fixes - -* env vars in script (f0958b0c) -* release script path (5c9ff4d7) -* force release (0d466c52) -* force release (f836a6fd) -* release cli args (d8f183f8) - -#### Reverts - -* jsdom bump (86fbb755) - -#### Documentation - -* add missing twitter card tags (b1d91c1c) - -#### Tests - -* enable multiple playwright test workers (22018ed9) -* fix lint issues (0dbd0125) -* disable flaky tests (5c15568a) -* remove render from beforeEach, wrap with waitFor (4b26122a) -* remove render from beforeEach (3fcef045) -* fix selectors (d7449364) -* fix label selector (3810c4ac) -* add description (7dc9d0dc) -* add config for vscode extension (bc0a296e) - -#### Styles - -* apply biome suggestions (f51e31fc) -* fix eslint warnings (011a023e) -* lint package.json (17e8dd1c) - -#### Build - -* swap vite plugin react with swc version (66b45aef) -* **deps:** bump pnpm/action-setup from 3 to 4 (#119) (75bc8d56) -* bump libs (787c168a) -* bump libs (3a275d12) -* update lock files (7f0fe684) -* add eslint and prettier plugins (9e947e51) - -#### CI - -* use git directly (4010a927) -* use action instead of hook (2aba358d) -* remove quotes and slash from hooks-exec (1699f2c6) -* fix script for hook exec (26245026) -* use script for hook exec (d4964dec) -* use single quotes (dd2cff15) -* escape args (c3d133b9) -* set Semantic Release step name (3e69458f) -* enable changelog creation (d037e296) -* fix checkout step config (eddd36b7) -* set pnpm config for vscode (940f8662) -* replace semantic-release, uplift, git-cliff with go-semantic-release (1823bfc9) -* set npm options (127dc33f) -* disable uplift changelog (71df96cb) -* add uplift config (56a88371) -* add versio config (16097596) -* pull since last tag (5d6623f6) -* add missing env var (8d657d80) -* set correct params for cliff-jumper (2c35f8e8) -* update pnpm-lock (813779c2) -* replace semantic-release with git-cliff and cliff-jumper (600a476b) -* use pnpm with semantic-release (5d0cfb22) -* set pnpm version (4fa2eb05) -* set packagemanager field (0c2a0213) -* replace eslint and prettier with biome (16ccd2bb) -* add lint to actions (cab5601e) -* fix eslint config (51a8ce2e) -* use playwright container (19b0f1a6) -* pnpm dedup (5eaac9cf) -* add eslint-plugin-yml (e326fba4) -* add console-fail-test (93189b82) -* bump pnpm version (5ce6ef30) -* add eslint-plugin-regexp (c70ca43b) -* update prettier and eslint configs (86138836) -* add more vscode settings (242e0bf5) -* force clear mocks (c5c7472a) - - ## [0.35.1](https://github.com/rare-magma/guitos/compare/v0.35.0...v0.35.1) (2024-04-06)