From 408f850437a187a65d23d803b1bdd8bf72a3a723 Mon Sep 17 00:00:00 2001 From: Derek Luu Date: Wed, 23 Aug 2023 16:46:50 -0400 Subject: [PATCH] clean up workflow, trigger --- .github/workflows/publish-components.yml | 15 ++++++++------- modules/components/src/Arranger/Arranger.js | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-components.yml b/.github/workflows/publish-components.yml index a03a32f3e..08c5650e9 100644 --- a/.github/workflows/publish-components.yml +++ b/.github/workflows/publish-components.yml @@ -5,9 +5,16 @@ on: branches: [portal-ui] paths: - 'modules/components/**' + +env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: modules/components steps: - uses: actions/checkout@v3 # Setup .npmrc file to publish to npm @@ -15,11 +22,5 @@ jobs: with: node-version: '14.19.0' registry-url: 'https://npm.pkg.github.com' - - run: | - cd modules/components - npm ci - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm ci - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/modules/components/src/Arranger/Arranger.js b/modules/components/src/Arranger/Arranger.js index 696d3a8e0..87d10445b 100644 --- a/modules/components/src/Arranger/Arranger.js +++ b/modules/components/src/Arranger/Arranger.js @@ -93,6 +93,6 @@ class Arranger extends React.Component { return null; } } -} // +} export default Arranger;