chore(deps-dev): bump @typescript-eslint/eslint-plugin #1176
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: "Release" | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
if: | | |
startsWith(github.event.head_commit.message, 'ci(release): ts auto mock new version') != true | |
&& startsWith(github.event.head_commit.message, 'chore(performance): add performance data') != true | |
&& startsWith(github.event.head_commit.message, 'chore(definitelyTyped): add definitelyTyped tests data') != true | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ lts/iron ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUBTYPESCRIPTTDD }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmjs.org/ | |
- name: Cache node_modules | |
if: github.event_name == 'push' || github.event_name == 'pull_request' | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies | |
run: npm ci | |
- name: build library | |
run: npm run build | |
- name: Register Token | |
run: | | |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > /home/runner/work/_temp/.npmrc | |
echo "email=<[email protected]>" >> /home/runner/work/_temp/.npmrc | |
echo "always-auth=true" >> /home/runner/work/_temp/.npmrc | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUBTYPESCRIPTTDD }} | |
GIT_AUTHOR_NAME: typescripttdd | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: typescripttdd | |
GIT_COMMITTER_EMAIL: typescripttdd | |
SLACK_WEBHOOK: ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }} | |
run: npm run release |