Skip to content

Commit

Permalink
feat: update Node and Yarn to LTS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
KarineBrandelli committed Jun 25, 2024
1 parent 89d56f7 commit 9c393d9
Show file tree
Hide file tree
Showing 13 changed files with 15,146 additions and 10,703 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
dist/*
node_modules
dist/
docs/
28 changes: 16 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,24 @@ on:

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

strategy:
matrix:
node-version: [18.x]
- name: Install yarn lastest version
run: |
corepack enable
yarn set version berry
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: yarn build
node-version: '20.15.0'

- name: Install dependencies
run: yarn --immutable

- name: Build package
run: yarn build
env:
CI: true
CI: true
21 changes: 11 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

strategy:
matrix:
node-version: [18.x]
- name: Install yarn lastest version
run: |
corepack enable
yarn set version berry
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: '20.15.0'

- name: Install dependencies
run: yarn --frozen-lockfile
run: yarn --immutable

- name: Run Linter
run: yarn lint
env:
CI: true
CI: true
16 changes: 12 additions & 4 deletions .github/workflows/publish-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,27 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4

- name: Install yarn lastest version
run: |
corepack enable
yarn set version berry
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: '20.15.0'
registry-url: https://registry.npmjs.org/
- run: |
yarn
yarn docs:build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1.6.1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_ACCESS_SECRET }}
aws-region: 'us-east-1'

- name: Deploy to S3
run: aws s3 sync docs s3://flipper-ui.ngi.com.br --delete
run: aws s3 sync docs s3://flipper-ui.ngi.com.br --delete
33 changes: 24 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,29 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4

- name: Install yarn lastest version
run: |
corepack enable
yarn set version berry
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn build
- run: node pre-publish.js
- run: npm publish ./dist --access public
node-version: '20.15.0'
registry-url: 'https://registry.npmjs.org/'

- name: Install dependencies
run: yarn

- name: Build package
run: yarn build

- name: Run pre-publish
run: node pre-publish.js

- name: Publish package on npm
run: npm publish ./dist --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23 changes: 12 additions & 11 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

strategy:
matrix:
node-version: [18.x]
- name: Install yarn lastest version
run: |
corepack enable
yarn set version berry
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: '20.15.0'

- name: Install dependencies
run: yarn --frozen-lockfile
run: yarn --immutable

- name: Run Jest Code Coverage on Node ${{ matrix.node-version }}
run: yarn test:ci
- name: Run Jest Code Coverage
run: yarn test:ci
22 changes: 4 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules

# testing
coverage

# production
docs
dist
coverage/

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.docz
docs/
dist/

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.nyc_output
.yarn/*
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.12.1
20.15.0
5 changes: 3 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
node_modules
dist/
docs/
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flipper-ui",
"version": "0.32.0",
"version": "0.33.0",
"description": "",
"main": "dist/index.js",
"homepage": "https://flipper-ui.ngi.com.br/",
Expand All @@ -24,7 +24,7 @@
"lint:quiet": "eslint --quiet .eslintrc.js 'src/**/*.{ts,tsx}'",
"format": "prettier -w 'src/**/*.{ts,tsx}'",
"docs:build": "storybook build -o docs",
"clean": "rm -rf ./dist/*",
"clean": "rm -rf ./dist",
"type-check": "tsc --noEmit",
"copy:package": "cp package.json dist/",
"publish:yalc": "cd dist/ && yalc publish && cd ..",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`DateTime should match snapshot 1`] = `
class="MuiInputBase-input MuiOutlinedInput-input makeStyles-outlinedInput-49 MuiInputBase-inputAdornedEnd MuiOutlinedInput-inputAdornedEnd"
role="date-picker"
type="text"
value="29052024"
value="25062024"
/>
<div
class="MuiInputAdornment-root MuiInputAdornment-positionEnd"
Expand Down
Loading

0 comments on commit 9c393d9

Please sign in to comment.