-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from sebastienrousseau/0.2.469
0.2.469
- Loading branch information
Showing
186 changed files
with
6,563 additions
and
2,596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,106 @@ | ||
name: Release | ||
|
||
on: [push, pull_request] | ||
|
||
#----------------------------------------------------------------------------- | ||
# Events triggering this workflow | ||
#----------------------------------------------------------------------------- | ||
on: | ||
push: | ||
branches: | ||
- main # Trigger on pushes to the 'main' branch | ||
pull_request: | ||
branches: | ||
- main # Trigger on pull requests to the 'main' branch | ||
|
||
#----------------------------------------------------------------------------- | ||
# Jobs: Tasks executed as part of the release workflow | ||
#----------------------------------------------------------------------------- | ||
jobs: | ||
# Build job | ||
build: | ||
name: Build the project | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [21.x] | ||
node-version: [18, 21] # Test against Node.js 18 and 21 | ||
|
||
steps: | ||
- run: echo ${{github.ref}} | ||
|
||
- uses: actions/checkout@v3 | ||
# Step 1: Check out the repository | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/[email protected] | ||
# Step 2: Set up Node.js | ||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
version: 7 | ||
node-version: ${{ matrix.node-version }} # Use the Node.js version from the matrix | ||
cache: pnpm # Enable caching for pnpm dependencies | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
# Step 3: Set up pnpm | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "pnpm" | ||
version: 8.6.3 # Specify a stable pnpm version | ||
|
||
# Step 4: Install dependencies | ||
- name: Install dependencies | ||
run: pnpm install --no-frozen-lockfile | ||
run: pnpm install --frozen-lockfile # Ensure lockfile integrity | ||
|
||
- name: Build | ||
# Step 5: Build the project | ||
- name: Build the project | ||
run: pnpm run build | ||
|
||
# publish: | ||
# needs: build | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/checkout@v2 | ||
|
||
# - uses: pnpm/[email protected] | ||
# with: | ||
# version: 7 | ||
# Step 6: Upload build artifacts | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist # Artifact name | ||
path: ./dist # Directory containing the build output | ||
|
||
# - name: Install dependencies | ||
# run: pnpm install --no-frozen-lockfile | ||
# Publish to NPM and GitHub registries | ||
publish: | ||
name: Publish the package | ||
needs: build # Wait for the 'build' job to complete | ||
runs-on: ubuntu-latest | ||
|
||
# - name: Build | ||
# run: pnpm run build | ||
steps: | ||
# Step 1: Check out the repository | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
# - name: Pack | ||
# run: pnpm pack | ||
# Step 2: Download build artifacts | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: dist # Artifact name from the 'build' job | ||
path: ./dist # Directory to place the downloaded artifacts | ||
|
||
# - name: Result | ||
# run: ls -al ./dist | ||
# Step 3: Set up Node.js | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 # Use Node.js version 18 | ||
cache: pnpm # Enable pnpm cache | ||
|
||
# - name: Publish to NPM | ||
# run: pnpm publish --access public --tag latest --no-git-checks | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# Step 4: Install pnpm | ||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
|
||
# - name: Set package registry | ||
# run: pnpm config set registry https://npm.pkg.github.com | ||
# Step 5: Authenticate with npm registry | ||
- name: Authenticate with npm registry | ||
run: pnpm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} | ||
|
||
# - name: Github package registry authentication | ||
# run: pnpm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }} | ||
# Step 6: Publish to npm registry | ||
- name: Publish to npm registry | ||
run: pnpm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
# - name: Npm registry authentication | ||
# run: pnpm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} | ||
# Step 7: Authenticate with GitHub Package Registry | ||
- name: Authenticate with GitHub Package Registry | ||
run: pnpm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Publish the package to Github package registry | ||
# run: pnpm publish --access public --tag latest --no-git-checks | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
# Step 8: Publish to GitHub Package Registry | ||
- name: Publish to GitHub Package Registry | ||
run: pnpm publish --access public | ||
|
||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
- run: pnpm install | ||
- run: pnpm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | ||
- name: Set package registry | ||
run: pnpm config set registry https://npm.pkg.github.com | ||
- name: Github package registry authentication | ||
run: pnpm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }} | ||
- name: Npm registry authentication | ||
run: pnpm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} | ||
- name: Publish the package to Github and Npm package registries | ||
run: pnpm publish --access=public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.