mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
|
fi
|
||||||
- name: Publish
|
- name: Publish
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: node build/publish.js
|
run: node -r @hydrooj/utils/lib/register build/publish.ts
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
# - name: Benchmark
|
# - name: Benchmark
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
/* eslint-disable no-await-in-loop */
|
/* eslint-disable no-await-in-loop */
|
||||||
/* eslint-disable import/no-dynamic-require */
|
/* eslint-disable import/no-dynamic-require */
|
||||||
require('@hydrooj/utils/lib/register');
|
import { writeFileSync } from 'fs';
|
||||||
|
import path from 'path';
|
||||||
const { gt } = require('semver');
|
import latest from 'latest-version';
|
||||||
const { default: latest } = require('latest-version');
|
import ora from 'ora';
|
||||||
const path = require('path');
|
import { gt } from 'semver';
|
||||||
const { default: ora } = require('ora');
|
import { getWorkspaces, spawnAsync } from './utils';
|
||||||
const { writeFileSync } = require('fs');
|
|
||||||
const { getWorkspaces, spawnAsync } = require('./utils');
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
CI, GITHUB_EVENT_NAME, GITHUB_REF,
|
CI, GITHUB_EVENT_NAME, GITHUB_REF,
|
||||||
Reference in new issue
Block a user