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

Commit

Permalink
Move NPM publish step to separate job again
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisameling committed Dec 18, 2020
1 parent d5d4950 commit 4f3073b
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,28 @@ jobs:
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to NPM
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && success() && matrix.os == 'ubuntu-16.04'
run: npm publish --access public
# Separate step for publishing to NPM so we're sure that generating + uploading prebuilds worked on all platforms
npm-publish:
needs: build
name: Publish to NPM
runs-on: ubuntu-20.04
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

steps:
- uses: actions/checkout@v2
- name: Use Node.js 15
uses: actions/setup-node@v1
with:
node-version: 15.x
registry-url: 'https://registry.npmjs.org'

- run: sudo apt-get install libsecret-1-dev
name: Install additional dependencies

- run: npm install
name: Setup environment

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

0 comments on commit 4f3073b

Please sign in to comment.