Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/stk 3020 upgrade haystack 4 #37

Merged
merged 12 commits into from
Jan 6, 2025
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: 11 additions & 12 deletions .github/workflows/master-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
name: Master pull request

on:
pull_request:
branches: [ master ]
pull_request:
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- run: npm ci --no-optional
- run: npm run lint
- run: npm test
- run: npm ci --no-optional
- run: npm run lint
- run: npm test
49 changes: 24 additions & 25 deletions .github/workflows/master-push.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
name: Master push

on:
push:
branches: [ master ]
push:
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2

- name: Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- run: npm ci --no-optional
- run: npm run lint
- run: npm test

- name: Configure AWS credentials for uploading docs
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_DOCS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_DOCS_SECRET_KEY }}
aws-region: us-east-1

# Create typedoc information and upload
- run: npm run doc
- run: aws s3 sync ./docs "s3://j2-docs/$GITHUB_REPOSITORY"
- uses: actions/checkout@v2

- name: Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- run: npm ci --no-optional
- run: npm run lint
- run: npm test

- name: Configure AWS credentials for uploading docs
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_DOCS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_DOCS_SECRET_KEY }}
aws-region: us-east-1

# Create typedoc information and upload
- run: npm run doc
- run: aws s3 sync ./docs "s3://j2-docs/$GITHUB_REPOSITORY"
67 changes: 33 additions & 34 deletions .github/workflows/release-published.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,39 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:

- uses: actions/checkout@v2
with:
# "ref" specifies the branch to check out.
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
ref: ${{ github.event.release.target_commitish }}

- name: Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- run: git config --global user.name "GitHub CD bot"
- run: git config --global user.email "[email protected]"

- run: npm ci --no-optional

# Version the module using the release tag name
- run: npm version ${{ github.event.release.tag_name }}

# Set up .npmrc file so the artifact can be published
- run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc

# Lint, test, build and publish changes
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Push version changes back to github
- run: git push
env:
# The secret is passed automatically. Nothing to configure.
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
with:
# "ref" specifies the branch to check out.
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
ref: ${{ github.event.release.target_commitish }}

- name: Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- run: git config --global user.name "GitHub CD bot"
- run: git config --global user.email "[email protected]"

- run: npm ci --no-optional

# Version the module using the release tag name
- run: npm version ${{ github.event.release.tag_name }}

# Set up .npmrc file so the artifact can be published
- run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc

# Lint, test, build and publish changes
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Push version changes back to github
- run: git push
env:
# The secret is passed automatically. Nothing to configure.
github-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ docs/
build/
dist/
coverage/
*.tgz
*.tgz
.DS_Store
19 changes: 0 additions & 19 deletions examples/defs.ts

This file was deleted.

Loading
Loading