Skip to content

Commit 87a02ae

Browse files
committed
cleanup workflows
1 parent 6282d8f commit 87a02ae

11 files changed

+24
-53
lines changed

.github/workflows/generated-build-and-test-no-win.yaml renamed to .github/workflows/generated-build-and-publish-no-win.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ jobs:
1717
with:
1818
node-version: 20.x
1919
cache: yarn
20-
- name: Configure Git 🛠
21-
run: |
22-
git config user.name "Cosmology"
23-
git config user.email "[email protected]"
2420
- name: Install and Build 📦
2521
run: |
2622
yarn
@@ -70,7 +66,7 @@ jobs:
7066
with:
7167
name: wasm-artifacts
7268
path: wasm
73-
prepare-and-log:
69+
prepare-and-publish:
7470
needs: build-wasm
7571
runs-on: ubuntu-latest
7672
steps:

.github/workflows/generated-build-and-test.yaml renamed to .github/workflows/generated-build-and-publish.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ jobs:
1818
with:
1919
node-version: 20.x
2020
cache: yarn
21-
- name: Configure Git 🛠
22-
run: |
23-
git config user.name "Cosmology"
24-
git config user.email "[email protected]"
2521
- name: Install and Build 📦
2622
run: |
2723
yarn
@@ -72,7 +68,7 @@ jobs:
7268
with:
7369
name: wasm-artifacts
7470
path: wasm
75-
prepare-and-log:
71+
prepare-and-publish:
7672
needs: build-wasm
7773
runs-on: ubuntu-latest
7874
steps:

.yamlize/workflows/build-and-publish-no-win.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313

1414
prepare-and-publish:
1515
needs: build-wasm
16-
import-yaml: yaml/prepare-and-publish.yaml
16+
import-yaml: yaml/prepare-and-publish-no-win.yaml

.yamlize/workflows/build-and-test-no-win.yaml

-16
This file was deleted.

.yamlize/workflows/build-and-test.yaml

-16
This file was deleted.

.yamlize/workflows/yaml/build-artifacts-no-win.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ strategy:
55
steps:
66
- import-yaml: git/checkout.yaml
77
- import-yaml: node/setup.yaml
8-
- import-yaml: git/configure.yaml
8+
# - import-yaml: git/configure.yaml
99

1010
- name: Install and Build 📦
1111
run: |

.yamlize/workflows/yaml/build-artifacts.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ strategy:
55
steps:
66
- import-yaml: git/checkout.yaml
77
- import-yaml: node/setup.yaml
8-
- import-yaml: git/configure.yaml
8+
# - import-yaml: git/configure.yaml
99

1010
- name: Install and Build 📦
1111
run: |

.yamlize/workflows/yaml/prepare-and-log.yaml renamed to .yamlize/workflows/yaml/prepare-and-publish-no-win.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ steps:
1010
run: |
1111
find ./libpg_query/
1212
find ./wasm
13+
14+
# - name: Publish to NPM 🚀
15+
# run: |
16+
# npm publish
17+
# env:
18+
# NODE_AUTH_TOKEN: ${{secrets.NPM_API_KEY}}

.yamlize/workflows/yaml/prepare-and-publish.yaml

+9-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ steps:
66

77
- import-yaml: artifacts/prepare.yaml
88

9-
- name: Publish to NPM 🚀
9+
- name: Log
1010
run: |
11-
npm publish
12-
env:
13-
NODE_AUTH_TOKEN: ${{secrets.NPM_API_KEY}}
11+
find ./libpg_query/
12+
find ./wasm
13+
14+
# - name: Publish to NPM 🚀
15+
# run: |
16+
# npm publish
17+
# env:
18+
# NODE_AUTH_TOKEN: ${{secrets.NPM_API_KEY}}

script/generate-non-win-workflows.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ const cmd = (config, workflow) => ([
2323
].join(' '));
2424

2525

26-
exec(cmd('config.yaml', 'build-and-test-no-win.yaml'), (error, _stdout, _stderr) => {
26+
exec(cmd('config.yaml', 'build-and-publish-no-win.yaml'), (error, _stdout, _stderr) => {
2727
if (error) {
2828
console.error(`Error: ${error.message}`);
2929
return;
3030
}
3131

3232
// Read the generated YAML file
33-
const outputPath = workflowDir(`generated-build-and-test-no-win.yaml`);
33+
const outputPath = workflowDir(`generated-build-and-publish-no-win.yaml`);
3434
try {
3535
const fileContents = fs.readFileSync(outputPath, 'utf8');
3636
const data = yaml.load(fileContents);

script/generate-workflows.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ const cmd = (config, workflow) => ([
2323
].join(' '));
2424

2525

26-
exec(cmd('config.yaml', 'build-and-test.yaml'), (error, _stdout, _stderr) => {
26+
exec(cmd('config.yaml', 'build-and-publish.yaml'), (error, _stdout, _stderr) => {
2727
if (error) {
2828
console.error(`Error: ${error.message}`);
2929
return;
3030
}
3131

3232

3333
// Read the generated YAML file
34-
const outputPath = workflowDir(`generated-build-and-test.yaml`);
34+
const outputPath = workflowDir(`generated-build-and-publish.yaml`);
3535
try {
3636
const fileContents = fs.readFileSync(outputPath, 'utf8');
3737
const data = yaml.load(fileContents);

0 commit comments

Comments
 (0)