chore: improve config files

This commit is contained in:
divlo
2021-03-08 14:33:53 +01:00
parent c7f64a6312
commit 4b95cd4293
12 changed files with 24838 additions and 56 deletions

View File

@ -27,11 +27,11 @@ jobs:
- name: 'Cache dependencies'
uses: 'actions/cache@v2.1.4'
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
path: '.npm'
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: 'Install dependencies'
run: 'npm install'
run: 'npm ci --cache .npm --prefer-offline'
- name: 'Lint'
run: 'npm run lint'

View File

@ -12,19 +12,25 @@ jobs:
steps:
- uses: 'actions/checkout@v2'
- name: 'Cache dependencies'
uses: 'actions/cache@v2.1.4'
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
- uses: 'actions/setup-node@v2.1.5'
- name: Use Node.js ${{ matrix.node-version }}
uses: 'actions/setup-node@v2.1.5'
with:
node-version: 14
registry-url: 'https://registry.npmjs.org/'
- run: 'npm install'
- run: 'npm run build'
- run: 'npm publish --access public'
- name: 'Cache dependencies'
uses: 'actions/cache@v2.1.4'
with:
path: '.npm'
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: 'Install dependencies'
run: 'npm ci --cache .npm --prefer-offline'
- name: 'Build'
run: 'npm run build'
- name: 'Publish package on npm'
run: 'npm publish --access public'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}