Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/actions/build-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ runs:
with:
node-version: ${{ inputs.node-version }}

- name: Set NPM_TOKEN
env:
NPM_TOKEN: ${{ inputs.npm-token }}
shell: bash
run: npm config set '//registry.npmjs.org/:_authToken' "${{ env.NPM_TOKEN }}"

- name: Clean install
shell: bash
run: npm ci
Expand Down
11 changes: 1 addition & 10 deletions .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Setup project
description: Setup npm project in Node.js

inputs:
NPM_TOKEN:
required: true
description: NPM_TOKEN

outputs:
node-version:
description: The resolved and installed Node.js version.
Expand All @@ -32,12 +27,8 @@ runs:
key: os-${{ runner.os }}/node-${{ steps.node.outputs.version }}/node_modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }}
run: |
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
npm ci
run: npm ci
shell: bash
env:
NPM_TOKEN: ${{ inputs.NPM_TOKEN }}
- name: Cache node_modules
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }}
uses: actions/cache@v4
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build-and-push-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_S3_PROD_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_S3_PROD_SECRET_ACCESS_KEY }}
s3-bucket-name: ${{ secrets.AWS_S3_PROD_BUCKET_NAME }}
amplify-app-id: ${{ secrets.AWS_AMPLIFY_PROD_APP_ID }}
npm-token: ${{ secrets.NPM_TOKEN }}
amplify-app-id: ${{ secrets.AWS_AMPLIFY_PROD_APP_ID }}
3 changes: 1 addition & 2 deletions .github/workflows/build-and-push-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_S3_STAGE_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_S3_STAGE_SECRET_ACCESS_KEY }}
s3-bucket-name: ${{ secrets.AWS_S3_STAGE_BUCKET_NAME }}
amplify-app-id: ${{ secrets.AWS_AMPLIFY_STAGE_APP_ID }}
npm-token: ${{ secrets.NPM_TOKEN }}
amplify-app-id: ${{ secrets.AWS_AMPLIFY_STAGE_APP_ID }}
2 changes: 0 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

storybook:
name: Chromatic toolset initialization
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

lint-commits:
name: Lint commits
Expand All @@ -23,8 +21,6 @@ jobs:
with:
fetch-depth: 0
- uses: ./.github/actions/setup-project
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

type-check:
Expand All @@ -34,8 +30,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm run type-check

lint:
Expand All @@ -45,8 +39,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm run lint

test:
Expand All @@ -57,8 +49,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Export variables
shell: bash
env:
Expand Down