-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.34 KB
/
release.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
name: Release build
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up git
uses: actions/checkout@v3
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: |
yarn test
- name: Build package
run: |
yarn pack
- name: Setup registry for NPM
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
scope: '@exposr'
- name: Publish package to NPM registry
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
run: |
yarn publish --access public
- name: Setup github packages
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@exposr'
- name: Publish package to github packages
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
yarn publish
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: ${{ startsWith(github.ref, '/refs/tags/v0') }}
files: |
exposr-ws-multiplex-*