Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gutenfries committed Oct 21, 2023
1 parent 37b7788 commit cd40939
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: ["main"]

env:
WAKATIME_API_KEY: ${{secrets.wakatime_api_key}}

jobs:
build:
runs-on: ubuntu-latest
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
name: Node.js Package

on:
release:
types: [created]
push: # Publish `main` branch to npm on release
branches:
- main

env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
WAKATIME_API_KEY: ${{secrets.wakatime_api_key}}

jobs:
build:
Expand All @@ -29,5 +34,3 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit cd40939

Please sign in to comment.