-
Notifications
You must be signed in to change notification settings - Fork 602
36 lines (29 loc) · 1.04 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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