Skip to content

Commit 77acd71

Browse files
Update actions (#22)
* feat: update action scripts * feat: replace node manager * chore: remove file --------- Co-authored-by: itmustbemagic <49156114+itmustbemagic@users.noreply.github.com> Co-authored-by: Kevin Fester <festerkevin@web.de>
1 parent 6e9cd5a commit 77acd71

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: node-manager
2+
description: 'Setup node and install yarn'
3+
inputs:
4+
node-version:
5+
description: 'Node version'
6+
required: true
7+
default: 18
8+
runs:
9+
using: "composite"
10+
steps:
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: ${{ inputs.node-version }}
14+
15+
- name: Install yarn
16+
shell: bash
17+
run: npm install -g yarn

.github/workflows/ci.yaml

+15-13
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ jobs:
2020
env:
2121
CURRENT_RUNNER: ${{ runner.name }}
2222

23-
- uses: actions/setup-node@v4
23+
- name: setup node
24+
uses: ./.github/actions/node-manager
2425
with:
2526
node-version: ${{ env.NVM_NODE_VERSION }}
2627

2728
- name: build-and-lint
2829
shell: bash
2930
run: |
30-
./bin/node-version-manager.sh yarn install --production=false --frozen-lockfile
31-
./bin/node-version-manager.sh yarn build
32-
./bin/node-version-manager.sh yarn lint
31+
yarn install --production=false --frozen-lockfile
32+
yarn build
33+
yarn lint
3334
3435
dry-run-publish:
3536
needs: [ build-and-lint ]
@@ -42,16 +43,17 @@ jobs:
4243
CURRENT_RUNNER: ${{ runner.name }}
4344
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4445

45-
- uses: actions/setup-node@v4
46+
- name: setup node
47+
uses: ./.github/actions/node-manager
4648
with:
4749
node-version: ${{ env.NVM_NODE_VERSION }}
4850

4951
- name: dry-run-publish
5052
shell: bash
5153
run: |
52-
./bin/node-version-manager.sh yarn install --production=false --frozen-lockfile
53-
./bin/node-version-manager.sh yarn build
54-
./bin/node-version-manager.sh npm publish --access public --tag latest --dry-run
54+
yarn install --production=false --frozen-lockfile
55+
yarn build
56+
npm publish --access public --tag latest --dry-run
5557
5658
publish-npm:
5759
needs: [ dry-run-publish ]
@@ -67,14 +69,14 @@ jobs:
6769
CURRENT_RUNNER: ${{ runner.name }}
6870
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
6971

70-
# Setup .npmrc file to publish to npm
71-
- uses: actions/setup-node@v4
72+
- name: setup node
73+
uses: ./.github/actions/node-manager
7274
with:
7375
node-version: ${{ env.NVM_NODE_VERSION }}
7476

7577
- name: publish-npm
7678
shell: bash
7779
run: |
78-
./bin/node-version-manager.sh yarn install --production=false --frozen-lockfile
79-
./bin/node-version-manager.sh yarn build
80-
./bin/node-version-manager.sh npm publish --access public --tag latest
80+
yarn install --production=false --frozen-lockfile
81+
yarn build
82+
npm publish --access public --tag latest

bin/node-version-manager.sh

-19
This file was deleted.

0 commit comments

Comments
 (0)