.github/workflows/publish.yml #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |