Skip to content

Commit

Permalink
Publish after release
Browse files Browse the repository at this point in the history
  • Loading branch information
vinsidious committed Mar 17, 2020
1 parent 45a1419 commit 0f5ff6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 42 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/publish.yml

This file was deleted.

24 changes: 5 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test / Release
name: Test / Release / Publish

on: [push, pull_request]

Expand Down Expand Up @@ -40,29 +40,15 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 13
registry-url: 'https://npm.pkg.github.com'
scope: '@mystery'
- name: Installing dependencies
run: npm install
- name: Create github release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish:
# needs: test
if: github.event_name == 'release'

runs-on: ubuntu-latest
name: Publish

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 13
registry-url: 'https://npm.pkg.github.com'
scope: '@mystery'
- name: Installing dependencies
run: npm install
- run: npm publish
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0f5ff6a

Please sign in to comment.