Skip to content

Commit

Permalink
[Geolonia internal rules] Add ESLint and use npm instead of yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
kamataryo committed Aug 25, 2023
1 parent 340efbf commit aeded6c
Show file tree
Hide file tree
Showing 4 changed files with 3,166 additions and 423 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
extends: ['@geolonia'],
env: {
browser: true,
node: true,
jest: true,
},

parserOptions: {
sourceType: 'module', // add if "type": "module" is set in package.json
project: ['tsconfig.json'], // add if you use TypeScript in the project
},
};
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn test
- run: yarn build
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build

publish:
name: 'Publish npm package'
Expand All @@ -40,8 +41,8 @@ jobs:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
scope: '@geolonia'
- run: yarn
- run: yarn build
- run: npm ci
- run: npm run build
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit aeded6c

Please sign in to comment.