Skip to content

Commit

Permalink
Publish this repo (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Jacomb authored Oct 21, 2019
1 parent dc90f1e commit 781d6f0
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 9 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Node.js Package

on:
pull_request:
branches:
- master
push:
branches:
- master
- refs/tags/*
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- run: yarn install --frozen-lockfile
- run: yarn test

publish-npm:
if: startsWith(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
registry-url: https://registry.npmjs.org/
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-gpr:
if: startsWith(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
registry-url: https://npm.pkg.github.com/
scope: '@hmcts'
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/div-test-harness",
"version": "1.0.2",
"version": "1.0.3",
"description": "Module used for functional tests to create a case and progress it to a certain state so that other tests can build upon it",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 781d6f0

Please sign in to comment.