Skip to content

Commit

Permalink
feat: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesalmon-mysense committed May 5, 2023
1 parent d3cc232 commit aa40c39
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- master

env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN_ADMIN_USER }}

jobs:
tests:
name: Tests and Coverage
Expand All @@ -27,6 +31,7 @@ jobs:
with:
node-version: ${{ matrix.version }}
registry-url: 'https://npm.pkg.github.com'
cache: 'yarn'

- name: Install packages
run: yarn install --frozen-lockfile
Expand All @@ -47,15 +52,11 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN_ADMIN_USER }}

- name: Install packages
run: yarn install --frozen-lockfile

- name: Build and publish to NPM
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN_USER }}
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN_ADMIN_USER }}
run: |
echo "Building..."
yarn build:ci
Expand Down

0 comments on commit aa40c39

Please sign in to comment.