- run: npm run lint
- run: npm run coverage
+ publish-npm:
+ needs: build
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
- name: Setup Node
uses: actions/setup-node@v2
with:
registry-url: https://registry.npmjs.org/
- name: Install
+ run: npm ci
+
+ - name: Build
+ run: npm run build:prod
+
+ - name: Install Production
run: npm ci --production
- name: Publish
- run: npm publish --tags
+ run: npm publish --prepublishOnly
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}