-
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (36 loc) · 943 Bytes
/
deployment.yml
File metadata and controls
47 lines (36 loc) · 943 Bytes
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
name: Deployment Pipeline
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+*
workflow_dispatch:
concurrency:
group: deployment
cancel-in-progress: false
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
id-token: write # OIDC for JSR authentication
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Setup Deno
uses: denoland/setup-deno@v2
- name: Publish to JSR
run: deno publish
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "latest"
registry-url: "https://registry.npmjs.org"
- name: Build npm package
run: deno task npm-build
- name: Publish to npm
run: npm publish --provenance --access public
working-directory: ./pkg/@eser/cli/dist