Skip to content

Commit

Permalink
👷 Add release config for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cermakjiri committed Sep 8, 2021
1 parent ef5b6ea commit f47e143
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies & build packages
run: yarn install --frozen-lockfile

- name: Run tests
run: yarn test:ci

- name: Publish packages
run: yarn release:beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_TEST }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Node.js CI
on: [push, pull_request]

jobs:
test:
build:
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit f47e143

Please sign in to comment.