Skip to content

Commit

Permalink
chore: fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SMAKSS committed Oct 19, 2022
1 parent cd7fa7c commit c62eae3
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,22 @@ on:
types: [created]

jobs:
example_matrix:
strategy:
matrix:
os: [ubuntu-latest]
version: [16]
runs-on: ${{ matrix.os }}

build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
node-version: 16

publish-npm:
needs: build
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
node-version: 16
registry-url: https://registry.npmjs.org/
scope: "@smakss"
- run: npm publish
Expand All @@ -36,12 +29,12 @@ jobs:

publish-gpr:
needs: build
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: "@smakss"
- run: npm publish
Expand Down

0 comments on commit c62eae3

Please sign in to comment.