Skip to content

Commit

Permalink
Set greensock registry in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
leroykorterink committed Jan 9, 2023
1 parent 5dfbca7 commit d263871
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ jobs:
matrix:
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

env:
GSAP_TOKEN: ${{ secrets.GSAP_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: |
echo "//npm.greensock.com/:_authToken=$GSAP_TOKEN" > ~/.npmrc
echo "@gsap:registry=\"https://npm.greensock.com\"" >> ~/.npmrc
- run: npm ci
- run: npm run build
- run: npm run test
12 changes: 8 additions & 4 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ jobs:
cache: 'npm'

- name: Build Storybook
env:
GSAP_TOKEN: ${{ secrets.GSAP_TOKEN }}
run: |
npm ci;
npm run build;
npm run storybook:build;
cp -r ./packages/*/.docs/ ./.docs;
echo "//npm.greensock.com/:_authToken=$GSAP_TOKEN" > ~/.npmrc
echo "@gsap:registry=\"https://npm.greensock.com\"" >> ~/.npmrc
npm ci
npm run build
npm run storybook:build
cp -r ./packages/*/.docs/ ./.docs
- name: Create artifact
uses: actions/upload-pages-artifact@v1
Expand Down

0 comments on commit d263871

Please sign in to comment.