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

build(deps): bump @types/node from 20.5.6 to 20.6.2 #585

build(deps): bump @types/node from 20.5.6 to 20.6.2

build(deps): bump @types/node from 20.5.6 to 20.6.2 #585

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Setup Corepack
run: corepack enable
- name: Cache Yarn dependencies
id: yarn-cache
uses: actions/cache@v3
with:
path: |
.yarn/cache
.yarn/unplugged
.yarn/install-state.gz
.pnp.cjs
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Yarn dependencies
run: yarn install
- name: Build
run: yarn build:linux
- name: Compress files
run: |
mkdir upload
pushd dist
tar -zcvf ../upload/qqntim-build.tar.gz .
zip -r9 ../upload/qqntim-build.zip .
popd
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build
path: upload/*
- name: Create release
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v1
with:
files: upload/*
generate_release_notes: true
tag_name: ${{ github.ref_name }}
prerelease: ${{ endsWith(github.ref_name, 'alpha') }}
draft: false
name: ${{ github.ref_name }}
- name: Setup .yarnrc.yml
if: github.ref_type == 'tag'
run: |
yarn config set npmRegistryServer https://registry.npmjs.org
yarn config set npmAlwaysAuth true
yarn config set npmAuthToken $NPM_AUTH_TOKEN
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish NPM Package
if: github.ref_type == 'tag'
run: yarn workspace @flysoftbeta/qqntim-typings npm publish