Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
feat: add publish-package script (#237)
Browse files Browse the repository at this point in the history
* feat: add publish-package script
  • Loading branch information
AlexeyCL authored Jul 5, 2021
1 parent 49e4185 commit 6661dd6
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: publish-package

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
master_tests:
name: Run e2e tests
# This workflow contains a single job called "build"
# The type of runner that the job will run on
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js v12.x
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install packages
run: yarn install

- name: Run server
run: yarn start:sampleApp &

- name: Run tests
run: yarn test

release_package:
needs: master_tests

name: Release package
runs-on: ubuntu-latest

steps:
- name: Release new package
run: standard-version --dry-run

0 comments on commit 6661dd6

Please sign in to comment.