-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (37 loc) · 1.02 KB
/
publish.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
name: Publish package
on:
release:
types:
- created
tags:
- "v[0-9]+(\\.[0-9]+)*"
jobs:
publish:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install node
uses: actions/setup-node@v2
with:
node-version: '16.13.0'
registry-url: "https://registry.npmjs.org"
scope: "@zondax"
- name: Install yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Get latest release version number
id: get_version
uses: battila7/get-version-action@v2
- name: Show version
run: echo ${{ steps.get_version.outputs.version }}
- name: Update tag
run: npm --no-git-tag-version version ${{ steps.get_version.outputs.version }}
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH_AUTO }}