fix: packages/eslint-config-vertexvis-typescript/package.json to redu… #319
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Branch | |
on: [push] | |
jobs: | |
build-and-analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout changes" | |
uses: actions/checkout@v3 | |
- name: "Install" | |
run: "yarn install" | |
- name: "Bootstrap" | |
run: "yarn bootstrap" | |
- name: "Build" | |
run: "yarn build" | |
- name: "Test" | |
run: "yarn test" | |
- name: "Lint" | |
run: "yarn lint" | |
- name: "Prepare build artifacts" | |
run: "./scripts/pre_upload_artifacts.sh" | |
- name: "Upload build artifacts" | |
uses: actions/upload-artifact@v1 | |
with: | |
name: dist | |
path: dist | |
publish: | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
needs: [build-and-analyze] | |
steps: | |
- name: "Checkout changes" | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: "Pull build artifacts" | |
uses: actions/download-artifact@v1 | |
with: | |
name: dist | |
path: dist | |
- name: "Prepare build artifacts" | |
run: "./scripts/post_download_artifacts.sh" | |
- name: "Publish changes" | |
uses: Vertexvis/npm-publish-action@v2.3.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
npm-auth-token: ${{ secrets.NPMJS_ACCESS_TOKEN }} |