Skip to content

Commit

Permalink
fix publish release
Browse files Browse the repository at this point in the history
  • Loading branch information
ellyofreitas committed May 15, 2024
1 parent 0f7cb3a commit 72f40cd
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 320 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ jobs:
test:
strategy:
matrix:
os: [macos-13, ubuntu-latest, windows-latest]
node-version: [16]
os: [macos-13, [self-hosted, vs-franqueado], windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- 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
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc
cache: 'npm'
- run: npm install-ci-test
21 changes: 11 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,33 @@ jobs:
test:
strategy:
matrix:
os: [macos-13, ubuntu-latest, windows-latest]
node-version: [16]
os: [macos-13, [self-hosted, vs-franqueado], windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- 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
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc
cache: 'npm'
- run: npm install-ci-test

npm-publish:
needs: test
runs-on: ubuntu-latest
runs-on: [self-hosted, vs-franqueado]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: .nvmrc
registry-url: https://npm.pkg.github.com
scope: '@grupoboticario'
scope: '@grupoboticario'
cache: 'npm'
- run: npm --no-git-tag-version version $TAG
env:
TAG: ${{ github.event.release.tag_name }}
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
Loading

0 comments on commit 72f40cd

Please sign in to comment.