Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1292 from silasdavis/master
Browse files Browse the repository at this point in the history
Fix NPM publish job
  • Loading branch information
Greg Hill authored Oct 10, 2019
2 parents eedf355 + adf3378 commit 9aeb68c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,25 @@ jobs:
if: success()

js:
name: NPM
name: NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Publish
env:
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
NPM_USER: ${{ secrets.NPM_USER }}
NPM_PASS: ${{ secrets.NPM_PASS }}
run: |
git config --global user.email "${NPM_EMAIL}"
npm install -g npm-cli-login
npm-cli-login
npm version from-git
npm publish --access public .
docker:
name: Docker
runs-on: ubuntu-latest
Expand All @@ -49,4 +53,4 @@ jobs:
export tag=$(git tag --points-at HEAD)
echo ${DOCKER_PASS} | docker login --username ${DOCKER_USER} --password-stdin
docker tag ${DOCKER_REPO}:${tag#v} ${DOCKER_REPO}:latest
docker push ${DOCKER_REPO}
docker push ${DOCKER_REPO}

0 comments on commit 9aeb68c

Please sign in to comment.