Release #31
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
# 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 |