mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
workspace: publish: switch to typescript
This commit is contained in:
2 files changed
+7
-9
No files matched your search
@@ -68,7 +68,7 @@ jobs:
|
||||
fi
|
||||
- name: Publish
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
run: node build/publish.js
|
||||
run: node -r @hydrooj/utils/lib/register build/publish.ts
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
# - name: Benchmark
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
/* eslint-disable no-await-in-loop */
|
||||
/* eslint-disable import/no-dynamic-require */
|
||||
require('@hydrooj/utils/lib/register');
|
||||
|
||||
const { gt } = require('semver');
|
||||
const { default: latest } = require('latest-version');
|
||||
const path = require('path');
|
||||
const { default: ora } = require('ora');
|
||||
const { writeFileSync } = require('fs');
|
||||
const { getWorkspaces, spawnAsync } = require('./utils');
|
||||
import { writeFileSync } from 'fs';
|
||||
import path from 'path';
|
||||
import latest from 'latest-version';
|
||||
import ora from 'ora';
|
||||
import { gt } from 'semver';
|
||||
import { getWorkspaces, spawnAsync } from './utils';
|
||||
|
||||
const {
|
||||
CI, GITHUB_EVENT_NAME, GITHUB_REF,
|
||||
Reference in new issue
Block a user