-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): add a release workflow with manual dispatch
- Loading branch information
1 parent
8f20b2c
commit ceefdf5
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Adds an ability to manually trigger a release in case `release-plan` failed for publish. | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
VOLTA_FEATURE_PNPM: 1 | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
- uses: volta-cli/action@2d68418f32546fd191eb666e232b321d5726484d # v4 | ||
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- name: install dependencies | ||
run: pnpm install | ||
|
||
- name: prepack | ||
run: pnpm run --filter ember-simple-auth prepack | ||
|
||
- name: Set publishing config | ||
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
- name: publish to npm | ||
run: pnpm run --filter ember-simple-auth release |