Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: publish
Comment thread
razbroc marked this conversation as resolved.

on:
workflow_dispatch:
release:
types: [published]


permissions:
id-token: write
contents: read

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Initialize npm environment
uses: ./.github/actions/init-npm
- uses: JS-DevTools/npm-publish@v3
- uses: actions/checkout@v6
Comment thread
almog8k marked this conversation as resolved.
- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1
with:
token: ${{ secrets.NPM_TOKEN }}
node-version: 24.x
- run: npm install -g npm
Comment thread
razbroc marked this conversation as resolved.
- name: Publish to npm
run: npm publish --access public
Comment thread
razbroc marked this conversation as resolved.

41 changes: 14 additions & 27 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,51 +6,38 @@ jobs:
tests:
name: Run Tests
runs-on: ubuntu-latest

strategy:
matrix:
node: [22.x]
node: [24.x]

steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Check out TS Project Git repository
uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v1
- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1
with:
node-version: ${{ matrix.node }}

- name: Install Node.js dependencies
run: npm ci

- name: Run tests
run: npm run test

- uses: actions/upload-artifact@v4
with:
name: Test Reporters
path: reports/**
name: Test Reporters ${{ matrix.node }}
path: ./reports/**

eslint:
name: Run TS Project eslint
runs-on: ubuntu-latest

steps:
- name: Check out TS Project Git repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 22.x

- name: Install TS Project dependencies
run: npm install
strategy:
matrix:
node: [24.x]

steps:
- name: Run TS Project linters
uses: wearerequired/lint-action@v1
uses: MapColonies/shared-workflows/actions/eslint@eslint-v1.0.1
with:
github_token: ${{ secrets.github_token }}
# Enable linters
eslint: true
prettier: true
eslint_extensions: ts
node_version: ${{ matrix.node }}
Comment thread
almog8k marked this conversation as resolved.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22
v24
Loading