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

Commit

Permalink
migrate from circleci to gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Apr 17, 2020
1 parent dfbddb7 commit 103fce6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .circleci/config.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
@@ -0,0 +1,24 @@
name: Publish to npm and s3
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: git config --global user.email "origami.support@ft.com";
- run: git config --global user.name "origamiserviceuser [bot]";
- run: npm ci
- name: Get the version
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- run: npm version --no-git-tag-version ${{ steps.version.outputs.VERSION }}
- run: git push origin HEAD:master
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 103fce6

Please sign in to comment.