forked from casamagalhaes/caxa
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.03 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
on:
release:
types: [created]
jobs:
test:
strategy:
matrix:
os: [macos-13, ubuntu-latest, windows-latest]
node-version: [16]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
- name: Install Python setup tools
run: pip install setuptools
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install-ci-test
npm-publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://npm.pkg.github.com
scope: '@grupoboticario'
- run: npm --no-git-tag-version version $TAG
env:
TAG: ${{ github.event.release.tag_name }}
- run: npm ci && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}