-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 919 Bytes
/
npm.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
name: Build NPM package (On Demand)
on:
workflow_dispatch:
inputs:
version:
description: "Release version (x.y.z):"
required: true
jobs:
release:
name: Build NPM package (On Demand)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- name: Run Deno dnt
run: deno task npm ${{ github.event.inputs.version }}
- name: Check Version
run: cat ./npm/package.json | jq .version
- name: Publish to NPM
run: cd ./npm && yarn publish --verbose --access public --new-version ${{ github.event.inputs.version }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}