Skip to content

Commit

Permalink
Lets give er a go (#2187)
Browse files Browse the repository at this point in the history
* Lets give er a go

* I dunno move checkout around?

* Try this?

* Does this fix it?

* Drop pnpm version?

* This looks better?
  • Loading branch information
GiantRobots committed Jul 3, 2024
1 parent 41a98ea commit eae6c7b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 35 deletions.
3 changes: 1 addition & 2 deletions .github/actions/checkout-and-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ runs:
using: 'composite'
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
uses: pnpm/action-setup@v4.0.0
with:
run_install: false
version: 8.6.0
- name: Install Node.js
uses: actions/setup-node@v4
with:
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/bump-package-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ name: Bump Package Version

on:
workflow_dispatch:
branches:
- main
secrets:
TEMPORAL_CICD_APP_ID:
required: true
TEMPORAL_CICD_PRIVATE_KEY:
required: true
inputs:
bump:
required: true
Expand Down Expand Up @@ -37,9 +30,7 @@ jobs:
with:
app_id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
private_key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}
permissions:
contents: read
pull_requests: write

- name: Configure Git
run: |
git config --local user.name 'Temporal Data (cicd)'
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: Publish npm Package
on:
pull_request:
types: [closed]
secrets:
TEMPORAL_CICD_APP_ID:
required: true
TEMPORAL_CICD_PRIVATE_KEY:
required: true

jobs:
publish:
Expand Down Expand Up @@ -35,9 +30,7 @@ jobs:
with:
app_id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
private_key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}
permissions:
contents: write
pull_requests: write

- name: Create Release
run: |
version=`cat ./package.json | jq -r .version`
Expand Down
22 changes: 7 additions & 15 deletions .github/workflows/update-ui-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
push:
branches:
- main
secrets:
TEMPORAL_CICD_APP_ID:
required: true
TEMPORAL_CICD_PRIVATE_KEY:
required: true

jobs:
sync:
Expand All @@ -21,6 +16,13 @@ jobs:
- name: Checkout and Setup Node
uses: ./.github/actions/checkout-and-setup

- name: Prepare checkout token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
private_key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}

- uses: actions/setup-go@v3
with:
go-version-file: server/go.mod
Expand All @@ -32,16 +34,6 @@ jobs:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Prepare checkout token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
private_key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}
permissions:
contents: read
pull_requests: write

- name: Checkout UI Server
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit eae6c7b

Please sign in to comment.