Skip to content

Commit

Permalink
Add github action to publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianKrebel committed Dec 16, 2024
1 parent 5428eb5 commit eba2d5f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ env:

jobs:
build-and-test:
runs-on: warp-ubuntu-latest-x64-4x
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21.7.3'
cache: 'npm'
node-version: "21.7.3"
cache: "npm"

- name: Install dependencies
run: npm ci
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
deploy:
needs: build-and-test
if: github.ref == 'refs/heads/master'
runs-on: warp-ubuntu-latest-x64-4x
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -76,12 +76,12 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21.7.3'
node-version: "21.7.3"

release:
needs: build-and-test
if: github.ref == 'refs/heads/master'
runs-on: warp-ubuntu-latest-x64-4x
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -94,8 +94,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21.7.3'
registry-url: 'https://registry.npmjs.org'
node-version: "21.7.3"
registry-url: "https://registry.npmjs.org"

- name: Release
env:
Expand Down

0 comments on commit eba2d5f

Please sign in to comment.