Skip to content

Commit

Permalink
clean up workflow, trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Luu committed Aug 23, 2023
1 parent 2c0b699 commit 408f850
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/publish-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ 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
- uses: actions/setup-node@v3
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 }}
2 changes: 1 addition & 1 deletion modules/components/src/Arranger/Arranger.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ class Arranger extends React.Component {
return null;
}
}
} //
}

export default Arranger;

0 comments on commit 408f850

Please sign in to comment.