-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (40 loc) · 1.07 KB
/
release-javascript.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
name: Release for Humbug JavaScript library
on:
push:
tags:
- 'javascript/v*'
defaults:
run:
working-directory: javascript
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js 15.x
uses: actions/setup-node@v2
with:
node-version: '15.x'
registry-url: 'https://registry.npmjs.org'
- name: Build and install dependencies
run: |
npm install
npm run build
- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
run: npm publish --access public
create_release:
runs-on: ubuntu-20.04
steps:
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: "Humbug JavaScript library - ${{ github.ref }}"
body: |
Version ${{ github.ref }} of the Humbug JavaScript library
draft: true
prerelease: false