Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DevNico committed Apr 8, 2021
1 parent 603d4a6 commit 422fe9b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
- name: Use Node 12.x
uses: actions/setup-node@v1
with:
node-version: "12.x"
Expand All @@ -25,7 +25,3 @@ jobs:

- name: Build
run: yarn build

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v2
with:
node-version: "12.x"
registry-url: "https://npm.pkg.github.com"
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 422fe9b

Please sign in to comment.