Skip to content

Commit

Permalink
chore: update release please
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Dec 17, 2024
1 parent eca3704 commit 8d2fab7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
- uses: googleapis/release-please-action@v4
id: tag-release
with:
path: packages/api
Expand All @@ -75,17 +75,17 @@ jobs:
package-name: api
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Other Changes","hidden":false}]'
- uses: actions/checkout@v2
if: ${{ steps.tag-release.outputs.releases_created }}
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
- uses: actions/setup-node@v2
if: ${{ steps.tag-release.outputs.releases_created }}
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
with:
node-version: '16'
registry-url: https://registry.npmjs.org/
- uses: bahmutov/npm-install@v1
if: ${{ steps.tag-release.outputs.releases_created }}
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
# --- API deploy steps -------------------------------------------------
- name: API - Deploy to Cloudflare
if: ${{ steps.tag-release.outputs.releases_created }}
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
uses: cloudflare/[email protected]
env:
ENV: 'production' # inform the build process what the env is
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
- uses: googleapis/release-please-action@v4
id: tag-release
with:
path: packages/client
Expand All @@ -45,17 +45,17 @@ jobs:
package-name: w3name
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Other Changes","hidden":false}]'
- uses: actions/checkout@v2
if: ${{ steps.tag-release.outputs.releases_created }}
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
- uses: actions/setup-node@v2
if: ${{ steps.tag-release.outputs.releases_created }}
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
with:
node-version: '16'
registry-url: https://registry.npmjs.org/
- uses: bahmutov/npm-install@v1
if: ${{ steps.tag-release.outputs.releases_created }}
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
# --- Client deploy steps ---------------------------------------------
- name: Client - NPM Publish
if: ${{ steps.tag-release.outputs.releases_created }}
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
run: npm publish --workspace packages/client
Expand All @@ -72,4 +72,4 @@ jobs:
- uses: bahmutov/npm-install@v1
- run: npm run typedoc --workspace packages/client
- run: gh-pages -d generated-docs
if: ${{ steps.tag-release.outputs.releases_created }}
if: ${{ fromJson(steps.tag-release.outputs.releases_created) }}

0 comments on commit 8d2fab7

Please sign in to comment.