Skip to content

Commit

Permalink
chore: gh workflow improvements (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
davenewza authored Oct 26, 2023
1 parent 428cd9b commit ab89fc1
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/NEW_draft_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
ref:
description: "The ref to release"
description: "Branch, tag or SHA to release"
required: true
type: string
jobs:
Expand Down Expand Up @@ -39,10 +39,10 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: "${{ steps.generate-version.outputs.version }}"
name: Keel runtime ${{ steps.generate-version.outputs.version }}
draft: true
name: ${{ steps.generate-version.outputs.version }}
draft: false
makeLatest: false
prerelease: false
prerelease: true
allowUpdates: true
updateOnlyUnreleased: true
generateReleaseNotes: true
4 changes: 2 additions & 2 deletions .github/workflows/NEW_publish_cli.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish CLI
run-name: Publish CLI ${{ inputs.version }}

on:
workflow_dispatch:
inputs:
version:
description: "Keel version to publish (tag)"
description: "Keel version to publish (e.g. v0.370.0)"
required: true
type: string
isPrerelease:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/NEW_publish_npm_packages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish NPM Packages
run-name: Publish SDKs ${{ inputs.version }} to '${{ inputs.publishTag }}'

on:
workflow_dispatch:
inputs:
version:
description: "Keel version to publish (tag)"
description: "Keel version to publish (e.g. v0.370.0)"
required: true
type: string
publishTag:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/NEW_update_npm_packages_dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
run-name: Update SDKs ${{ inputs.version }} with '${{ inputs.publishTag }}'

on:
workflow_dispatch:
inputs:
version:
description: "NPM version to update (e.g. 0.370.0)"
required: true
type: string
publishTag:
description: "NPM distribution tag"
required: true
default: "latest"
type: string

jobs:
npm_release:
name: NPM Release Matrix
runs-on: ubuntu-latest
strategy:
matrix:
package:
[
"wasm",
"functions-runtime",
"testing-runtime",
"client-react",
"client-react-query",
]
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- name: npm dist-tag add ${{ matrix.package }}@${{ inputs.version }} ${{ inputs.publishTag }}
run: npm dist-tag add ${{ matrix.package }}@${{ inputs.version }} ${{ inputs.publishTag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

2 changes: 1 addition & 1 deletion .github/workflows/OLD_new_prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Initiate Pre-Release
name: OLD Initiate Pre-Release

on:
#push:
Expand Down

0 comments on commit ab89fc1

Please sign in to comment.