This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb591bf
commit 75d925c
Showing
5 changed files
with
220 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
environment: publish | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install dependencies | ||
run: | | ||
yarn install | ||
- name: Publish to NPM | ||
run: | | ||
bash ./bin/publish-npm | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# good nix template: https://srid.ca/rust-nix | ||
|
||
{ | ||
inputs = { | ||
nixpkgs.url = "nixpkgs"; | ||
rust-overlay.url = "github:oxalica/rust-overlay"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, rust-overlay, flake-utils }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
overlays = [ (import rust-overlay) ]; | ||
pkgs = import nixpkgs { | ||
inherit system overlays; | ||
}; | ||
# pkgs = nixpkgs.legacyPackages.${system}; | ||
|
||
# The reason for using pkgs.symlinkJoin instead of just pkgs is to consolidate these various Rust-related components into a single symlink. This can be convenient for setting up a development environment or ensuring that specific tools are available in a unified location. It simplifies the management of Rust-related tools and makes it easier to reference them in the rest of the Nix configuration, for example, in the subsequent nativeBuildInputs section of the mkShell environment. | ||
# rust-toolchain = pkgs.symlinkJoin { | ||
# name = "rust-toolchain"; | ||
# paths = [ pkgs.rustc-wasm32 pkgs.cargo pkgs.cargo-watch pkgs.rust-analyzer pkgs.rustPlatform.rustcSrc ]; | ||
# }; | ||
|
||
rust-toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override { | ||
extensions = [ "rust-src" ]; | ||
targets = [ "wasm32-unknown-unknown" ]; | ||
}); | ||
|
||
nativeBuildInputs = with pkgs; [ | ||
pkg-config | ||
rust-toolchain | ||
]; | ||
|
||
packages = with pkgs; [ | ||
wget | ||
dbus | ||
openssl_3 | ||
nodejs_18 | ||
yarn | ||
]; | ||
|
||
buildInputs = packages; | ||
in | ||
rec { | ||
# `nix develop` | ||
devShell = pkgs.mkShell { | ||
inherit buildInputs nativeBuildInputs; | ||
shellHook = '' | ||
# For rust-analyzer 'hover' tooltips to work. | ||
export RUST_SRC_PATH=${rust-toolchain} | ||
# add ~/.cargo/bin to PATH for crates installed with `cargo install` | ||
export PATH=$PATH:$HOME/.cargo/bin | ||
''; | ||
}; | ||
}); | ||
} |
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,6 +1,6 @@ | ||
{ | ||
"name": "edgen", | ||
"version": "4.24.7", | ||
"version": "0.1.0", | ||
"description": "The official TypeScript library for the Edgen API", | ||
"author": "Edgen <[email protected]>", | ||
"types": "dist/index.d.ts", | ||
|