Skip to content

Commit

Permalink
chore: use yarn berry
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyupe committed Mar 5, 2024
1 parent d366e69 commit 18ed360
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 152 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/machina-opcode-wrapper.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: FFXIVOpcodes (TC)
on:
push:
tags:
tags:
- tc/*
workflow_dispatch:
inputs:
version:
description: '游戏版本号(x.xx)'
description: "游戏版本号(x.xx)"
required: true
default: '6.01a'
default: "6.01a"

env:
version: ${{ github.event.inputs.version || '6.1' }}
Expand All @@ -20,39 +20,39 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
path: repo

- name: Clone FFXIVOpcodes
run: git clone https://github.com/${target_repo}.git machina-wrapper-json
- name: Check node version
run: node -v
- name: NPM install
run: |
cd repo
npm i
- name: Run data generator
run: node repo/worker/machina-wrapper-json/index.mjs machina-wrapper-json ${{ env.version }}
- name: Setting origin
run: |
cd machina-wrapper-json
git remote set-url origin https://github.com/${target_repo}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.WORKER_ACCESS_KEY }}
path: machina-wrapper-json
commit-message: "feat(ipc): update for cn patch-${{ env.version }}"
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
push-to-fork: ${{ env.target_fork }}
branch: ci/zh/opcode-patch-${{ env.version }}
base: master
title: "feat(ipc): update for cn patch-${{ env.version }}"
body: |
This PR is generated by [ffxiv-opcode-worker](https://github.com/zhyupe/ffxiv-opcode-worker)
- uses: actions/checkout@v3
with:
path: repo

- name: Clone FFXIVOpcodes
run: git clone https://github.com/${target_repo}.git machina-wrapper-json

- name: Check node version
run: node -v

- name: NPM install
run: |
cd repo
yarn
- name: Run data generator
run: yarn node repo/worker/machina-wrapper-json/index.mjs machina-wrapper-json ${{ env.version }}

- name: Setting origin
run: |
cd machina-wrapper-json
git remote set-url origin https://github.com/${target_repo}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.WORKER_ACCESS_KEY }}
path: machina-wrapper-json
commit-message: "feat(ipc): update for cn patch-${{ env.version }}"
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
push-to-fork: ${{ env.target_fork }}
branch: ci/zh/opcode-patch-${{ env.version }}
base: master
title: "feat(ipc): update for cn patch-${{ env.version }}"
body: |
This PR is generated by [ffxiv-opcode-worker](https://github.com/zhyupe/ffxiv-opcode-worker)
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
node_modules
local
local
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
110 changes: 0 additions & 110 deletions package-lock.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"bugs": {
"url": "https://github.com/zhyupe/ffxiv-opcode-worker/issues"
},
"homepage": "https://github.com/zhyupe/ffxiv-opcode-worker#readme"
"homepage": "https://github.com/zhyupe/ffxiv-opcode-worker#readme",
"packageManager": "[email protected]"
}
68 changes: 68 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!

__metadata:
version: 8
cacheKey: 10c0

"at-least-node@npm:^1.0.0":
version: 1.0.0
resolution: "at-least-node@npm:1.0.0"
checksum: 10c0/4c058baf6df1bc5a1697cf182e2029c58cd99975288a13f9e70068ef5d6f4e1f1fd7c4d2c3c4912eae44797d1725be9700995736deca441b39f3e66d8dee97ef
languageName: node
linkType: hard

"csv-parse@npm:^5.3.0":
version: 5.5.5
resolution: "csv-parse@npm:5.5.5"
checksum: 10c0/717d8e66386cbeed9baea93f231efd3aff967a9b70c27f0c8bb19fa5a723d01b2d426b6728e8f1e5e26731ec4371a5f513e1a524344411735fc8d3848770409e
languageName: node
linkType: hard

"ffxiv-opcode-worker@workspace:.":
version: 0.0.0-use.local
resolution: "ffxiv-opcode-worker@workspace:."
dependencies:
csv-parse: "npm:^5.3.0"
fs-extra: "npm:^9.0.1"
languageName: unknown
linkType: soft

"fs-extra@npm:^9.0.1":
version: 9.1.0
resolution: "fs-extra@npm:9.1.0"
dependencies:
at-least-node: "npm:^1.0.0"
graceful-fs: "npm:^4.2.0"
jsonfile: "npm:^6.0.1"
universalify: "npm:^2.0.0"
checksum: 10c0/9b808bd884beff5cb940773018179a6b94a966381d005479f00adda6b44e5e3d4abf765135773d849cc27efe68c349e4a7b86acd7d3306d5932c14f3a4b17a92
languageName: node
linkType: hard

"graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0":
version: 4.2.11
resolution: "graceful-fs@npm:4.2.11"
checksum: 10c0/386d011a553e02bc594ac2ca0bd6d9e4c22d7fa8cfbfc448a6d148c59ea881b092db9dbe3547ae4b88e55f1b01f7c4a2ecc53b310c042793e63aa44cf6c257f2
languageName: node
linkType: hard

"jsonfile@npm:^6.0.1":
version: 6.1.0
resolution: "jsonfile@npm:6.1.0"
dependencies:
graceful-fs: "npm:^4.1.6"
universalify: "npm:^2.0.0"
dependenciesMeta:
graceful-fs:
optional: true
checksum: 10c0/4f95b5e8a5622b1e9e8f33c96b7ef3158122f595998114d1e7f03985649ea99cb3cd99ce1ed1831ae94c8c8543ab45ebd044207612f31a56fd08462140e46865
languageName: node
linkType: hard

"universalify@npm:^2.0.0":
version: 2.0.1
resolution: "universalify@npm:2.0.1"
checksum: 10c0/73e8ee3809041ca8b818efb141801a1004e3fc0002727f1531f4de613ea281b494a40909596dae4a042a4fb6cd385af5d4db2e137b1362e0e91384b828effd3a
languageName: node
linkType: hard

0 comments on commit 18ed360

Please sign in to comment.