Skip to content

Commit

Permalink
fix(trunk): add trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
djMax committed Oct 12, 2023
1 parent c38934f commit c91607e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,10 +23,14 @@ jobs:
- run: yarn lint
- run: yarn test


publish-npm:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v1

Expand All @@ -37,6 +44,6 @@ jobs:
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.SESAMECARE_OSS_NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.SESAMECARE_OSS_NPM_TOKEN }}
run: |
yarn dlx semantic-release
yarn dlx semantic-release
32 changes: 17 additions & 15 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@ name: Node CI

on: [push]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: npm install, lint, build, and test
run: |
yarn install --immutable
yarn lint
yarn build
yarn test
env:
CI: true
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: npm install, lint, build, and test
run: |
yarn install --immutable
yarn lint
yarn build
yarn test
env:
CI: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sesamecare-oss/opentelemetry-node-metrics",
"version": "1.0.0",
"description": "",
"description": "A modernized set of node metrics for OpenTelemetry",
"main": "build/index.js",
"types": "build/index.d.ts",
"author": "Developers <developers@sesamecare.com>",
Expand Down

0 comments on commit c91607e

Please sign in to comment.