Skip to content

Commit

Permalink
build: test
Browse files Browse the repository at this point in the history
  • Loading branch information
oneWalker committed Nov 6, 2024
1 parent 1dae84b commit 5f6c0f9
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,32 @@ jobs:
mongodb-version: ['6.0']

steps:
- name: Git checkout
uses: actions/checkout@v3
# Checkout action repository
- name: Checkout action repository
uses: actions/checkout@v4
with:
repository: node-modules/github-actions
path: action_repo

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
# Checkout project repository
- name: Checkout project repository
uses: actions/checkout@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
path: main_repo
token: ${{ secrets.GIT_TOKEN }}

- name: Run Unit Tests
run: npm run ci
# Setup Node.js environment
- name: Setup Node.js
uses: actions/setup-node@v4

# Install action dependencies
- name: Install action dependencies
run: npm i --no-package-lock --no-fund --omit=dev
working-directory: action_repo/scripts/release

# Install dependencies
- name: Install dependencies
run: npm i --no-package-lock --no-fund

- name: Publish to npm
uses: JS-DevTools/npm-publish@v3
Expand Down

0 comments on commit 5f6c0f9

Please sign in to comment.