This repository was archived by the owner on Jul 8, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (47 loc) · 1.36 KB
/
devon.yaml
File metadata and controls
49 lines (47 loc) · 1.36 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release Devon
on:
push:
paths:
- 'packages/devon/**'
branches:
- master
jobs:
publish:
name: Publish
runs-on: ubuntu-20.04
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Clone Repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up PNPM
uses: pnpm/action-setup@v2.2.2
with:
run_install: false
- name: Fetch PNPM Store
id: pnpm-cache
run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- name: Restore PNPM Cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build Packages
run: pnpm build --filter=@evilkiwi/devon
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: ./packages/devon