Skip to content

Commit

Permalink
ci(publish): needs redis service
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed May 24, 2022
1 parent be976fa commit 2fcd1ca
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
43 changes: 40 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,45 @@ on:

env:
CI: true
node-version: 16

jobs:
publish:
uses: haraka/.github/.github/workflows/publish.yml@master
secrets: inherit
build:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
steps:
- uses: actions/setup-node@v3
name: Node ${{ env.node-version }}
with:
node-version: ${{ env.node-version }}
- uses: actions/checkout@v3
- run: npm install
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
name: Node ${{ env.node-version }}
with:
node-version: ${{ env.node-version }}
registry-url: https://registry.npmjs.org/

- uses: actions/checkout@v3
with:
fetch-depth: 0
# fetch-depth 0 needed by GitHub Release

- name: publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: GitHub Release
uses: justincy/github-action-npm-release@2.0.1
id: release
2 changes: 2 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
- dep(eslint): 4 -> 8
- dep(pi-redis): * -> 2
- ci: replace travis/appveyor with GHA
- lint: prefer-template
- doc(README): badge updates
- style: plugin -> this


### 1.0.7 - 2019-03-16
Expand Down

0 comments on commit 2fcd1ca

Please sign in to comment.