-
Notifications
You must be signed in to change notification settings - Fork 203
42 lines (33 loc) · 800 Bytes
/
publish.yml
File metadata and controls
42 lines (33 loc) · 800 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
name: Publish
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*' # Semver-Tag
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
Publish:
runs-on: ubuntu-latest
steps:
# Checkout
- uses: actions/checkout@v4
# Node
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
# Deno
- uses: denoland/setup-deno@v2
with:
deno-version: v2.5
# Update
- name: Update
run: npm install npm -g
# Build
- name: Build
run: deno task build
# Publish
- name: Publish
run: npm publish typebox-*.tgz --provenance --access public
working-directory: target/build