Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

npm: bump eslint from 8.51.0 to 9.0.0 #174

npm: bump eslint from 8.51.0 to 9.0.0

npm: bump eslint from 8.51.0 to 9.0.0 #174

Workflow file for this run

name: Release
on:
pull_request:
branches:
- main
types:
- closed
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
release:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')
environment: Production
runs-on: macos-latest
outputs:
tag: ${{ steps.tag.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@mytiki'
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Install JS dependencies
run: npm ci
- name: Build Dist
run: npm run verify
- name: Get version
id: version
run: echo "current=$(npm pkg get version | tr -d '"')" >> $GITHUB_OUTPUT
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build Docs
run: npx typedoc src/index.ts
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- name: Release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.version.outputs.current }}