Skip to content

Commit

Permalink
chore(release): add a release workflow with manual dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Sep 9, 2024
1 parent 8f20b2c commit ceefdf5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit ceefdf5

Please sign in to comment.