From cee2990f4921cd5294f1cc9b370f64a69ef30c28 Mon Sep 17 00:00:00 2001 From: danocmx Date: Sun, 4 Feb 2024 21:40:40 +0100 Subject: [PATCH] fix: update ci and packages --- .github/workflows/on-push.yml | 20 +++++++------------- .github/workflows/pullrequest.yml | 20 +++++++++++++------- package-lock.json | 3 --- 3 files changed, 20 insertions(+), 23 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 3e96cc3..93c5176 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -7,25 +7,19 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: '18' - scope: "@s-tf" - env: - NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_INSTALL_TOKEN }} + node-version: '20' + - name: Install packages run: npm ci - env: - NPM_CONFIG_USERCONFIG: .npmrc.ci - NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_INSTALL_TOKEN }} + - run: npm run build name: Build TS into JS. + - run: npm run test name: Test function outputs. + - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index feb6d9c..9d5c1db 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -1,4 +1,4 @@ -name: Github pull request +name: Github Pull Request on: pull_request: @@ -8,10 +8,16 @@ jobs: test_pull_request: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 - - run: npm ci - - run: npm run build - - run: npm run test + node-version: 20 + + - name: Install packages + run: npm ci + + - name: Build TS into JS. + run: npm run build + + - name: Test function outputs. + run: npm run test diff --git a/package-lock.json b/package-lock.json index 5024eb3..17ad704 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,9 +8,6 @@ "name": "tf2-item-format", "version": "5.9.8", "license": "MIT", - "dependencies": { - "tf2-static-schema": "^1.63.0" - }, "devDependencies": { "@semantic-release/git": "^10.0.1", "chai": "^4.2.0",