Skip to content

Commit

Permalink
fix: find, update, findOne, create and delete 83fadb1 Javier Ribó <e…
Browse files Browse the repository at this point in the history
…lribonazo@gmail.com>	15 sept 2024, 16:32
  • Loading branch information
elribonazo committed Sep 15, 2024
1 parent f89dcf0 commit 559f191
Show file tree
Hide file tree
Showing 84 changed files with 22,227 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Release
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
on:
workflow_dispatch:
inputs:
branch:
description: 'Select the branch to release from'
required: true
default: 'main'
type: choice
options:
- main
- develop
# Add more branches if necessary
rc:
description: 'Publish as a release candidate (RC)?'
required: true
default: 'false'
type: boolean

jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./ts # Set default working directory to ./ts
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0 # Ensure full Git history is available

# Removed the redundant 'Change directory' step

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
cache: 'npm'
cache-dependency-path: ./ts/package-lock.json # Specify the correct path

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Install dependencies
run: npm ci

- name: Build the project
run: npm run build

- name: Configure NPM authentication
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
RELEASE_BRANCH: ${{ github.event.inputs.branch }}
RC: ${{ github.event.inputs.rc }}
run: npx semantic-release
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

pkg
.idea
/target
node_modules
build
Loading

0 comments on commit 559f191

Please sign in to comment.