chore(deps): update dependency typescript to v5.3.3 (#1823) #1728
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: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Get node.js cache directory | |
id: node-cache-dir | |
run: echo "::set-output name=dir::$(npm config get cache)" | |
- name: Cache npm dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.node-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint files | |
run: npm run lint | |
- name: Set up env tokens | |
env: | |
GITHUB_API_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: echo "GATSBY_GITHUB_TOKEN=$GITHUB_API_TOKEN" > .env | |
- name: Build | |
run: npm run build | |
- name: Set domain CNAME | |
run: echo "lapidist.net" >> public/CNAME | |
- name: Touch .nojekyll | |
run: touch public/.nojekyll | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
branch: gh-pages | |
folder: public |