Skip to content

Commit

Permalink
ci: add workflow_dispatch to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorales committed Nov 4, 2022
1 parent 4b531b6 commit d8bdb58
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-boxes-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lukemorales/query-key-factory': patch
---

Fix wrong published types for contextual queries
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs:
forceGPR:
description: Force GPR release
type: boolean
required: false
default: false

jobs:
install-deps:
Expand Down Expand Up @@ -119,8 +126,8 @@ jobs:
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: 🗃️ Create .npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
# - name: 🗃️ Create .npmrc
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: 👤 Set git user
run: |
Expand All @@ -143,7 +150,7 @@ jobs:

gpr-release:
name: 🚀 Release to GitHub Package Manager
if: needs.release.outputs.published == 'true'
if: github.event.inputs.forceGPR == 'true' || needs.release.outputs.published == 'true'
runs-on: ubuntu-latest
needs: [build, release]
permissions:
Expand Down

0 comments on commit d8bdb58

Please sign in to comment.