Skip to content

Update version #16

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

Merged
merged 3 commits into from
Oct 11, 2024
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
45 changes: 23 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Publish Package to npmjs

on:
workflow_run:
workflows: ['Test Pipeline']
types:
- completed
push:
branches:
- release

jobs:
build:
Expand All @@ -18,6 +17,7 @@ jobs:

release:
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: read
id-token: write
Expand All @@ -41,6 +41,7 @@ jobs:

tags:
runs-on: ubuntu-latest
needs: [release]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
Expand All @@ -53,7 +54,7 @@ jobs:
- name: Setup GitHub credentials for pushing tags
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/adityadarma/adonis-datatables.git
git checkout main
git checkout release
- name: Create GitHub tag
run: |
git config user.name "github-actions[bot]"
Expand All @@ -62,21 +63,21 @@ jobs:
git push origin "v${{ env.VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get merged commits from last tag to current
id: logs
run: |
LAST_TAG=$(git describe --tags --abbrev=0)
echo "Last tag: $LAST_TAG"
LOGS=$(git log ${LAST_TAG}..HEAD --oneline)
echo "LOGS=$LOGS" >> $GITHUB_ENV
# - name: Get merged commits from last tag to current
# id: logs
# run: |
# LAST_TAG=$(git describe --tags --abbrev=0)
# echo "Last tag: $LAST_TAG"
# LOGS=$(git log ${LAST_TAG}..HEAD --oneline)
# echo "LOGS=$LOGS" >> $GITHUB_ENV

- name: Create GitHub release
uses: actions/create-release@v1
with:
tag_name: "v${{ env.VERSION }}"
release_name: "Release v${{ env.VERSION }}"
body: ${{ env.LOGS }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Create GitHub release
# uses: actions/create-release@v1
# with:
# tag_name: "v${{ env.VERSION }}"
# release_name: "Release v${{ env.VERSION }}"
# body: ${{ env.LOGS }}
# draft: false
# prerelease: false
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 changes: 4 additions & 36 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,6 @@ on:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
run: npm install
- name: Run lint
run: npm run lint

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
run: npm install
- name: Run typecheck
run: npm run typecheck

tests:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -40,23 +22,9 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run tests
run: npm test

windows:
runs-on: windows-latest
strategy:
matrix:
node-version:
- 20.10.0
- 21.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run lint
run: npm run lint
- name: Run typecheck
run: npm run typecheck
- name: Run tests
run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@adityadarma/adonis-datatables",
"description": "Package server side datatables on AdonisJS",
"version": "1.1.9",
"version": "1.1.10",
"engines": {
"node": ">=20.6.0"
},
Expand Down
Loading