Skip to content

Commit

Permalink
fix: rewrite un-publish CI in JS (#1490)
Browse files Browse the repository at this point in the history
* Revert "feat: add `Predicate.getTransferTxId` helper (#1467)"

This reverts commit 70233c1.

* feat: alter workflow stage name

* feat: move unpublish script to js

* feat: rewrite imports
  • Loading branch information
danielbate authored Dec 10, 2023
1 parent 00bf7e1 commit 4ecd643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-unpublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

jobs:
clean-npm-versions:
name: Unpublish versions next, preview, master...
name: Unpublish versions next and pr
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
Expand Down
11 changes: 6 additions & 5 deletions scripts/release-unpublish.ts → scripts/release-unpublish.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { versions } from '@fuel-ts/versions';
import { exec } from 'child_process';
import { compare } from 'compare-versions';
import { readFileSync, readdirSync } from 'fs';
import { join } from 'path';
/* eslint-disable @typescript-eslint/no-var-requires */
const { versions } = require('@fuel-ts/versions');
const exec = require('child_process');
const { compare } = require('compare-versions');
const { readFileSync, readdirSync } = require('fs');
const { join } = require('path');

const DELETE_TAGS = /next|pr/;
const { FUELS: CURRENT_VERSION } = versions;
Expand Down

0 comments on commit 4ecd643

Please sign in to comment.