-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (47 loc) · 1.32 KB
/
cd.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CD
on:
push:
branches:
- main
workflow_run:
workflows: [CI]
types: [completed]
branches: [main]
defaults:
run:
working-directory: ./packages/colorwind
jobs:
deploy:
runs-on: ${{ matrix.operating-system }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment:
name: production
url: https://jsr.io/@siguici/colorwind
permissions:
id-token: write
contents: read
strategy:
matrix:
operating-system: [ubuntu-latest]
deno-version: [2.0]
name: 🚀 Deploy colorwind to JSR using Deno ${{ matrix.deno-version }}
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: 🔨 Configure Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: 📦️ Download Deno distribution files
uses: actions/download-artifact@v4
with:
name: deno_dist
path: packages/colorwind/jsr
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: 🐳 Install dependencies
run: deno install
- name: 🚨 Fix code style
run: deno task fix
- name: 🚀 Publish to JSR
run: deno publish --allow-dirty