Skip to content

.github/workflows/publish.yml #4

.github/workflows/publish.yml

.github/workflows/publish.yml #4

Workflow file for this run

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 }}