Skip to content

Commit

Permalink
release setup (#4)
Browse files Browse the repository at this point in the history
* release setup

* release setup

* empty commit

* crate descriptions

* crate adjustment

* update

* add secrets
  • Loading branch information
michaelangeloio authored Nov 6, 2023
1 parent 201db4b commit 0c8fbff
Show file tree
Hide file tree
Showing 8 changed files with 8,243 additions and 3,736 deletions.
15 changes: 15 additions & 0 deletions .autorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"plugins": [
"crates",
"all-contributors",
"conventional-commits",
"first-time-contributor",
"released",
"vscode"
],
"owner": "michaelangeloio",
"repo": "does-it-throw",
"name": "Michael Angelo Rivera",
"email": "[email protected]",
"onlyPublishWithReleaseLabel": true
}
47 changes: 47 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release

on: [push]

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'

- uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7

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

- name: Install wasm-pack
run: cargo install wasm-pack

- name: Install dependencies
run: bun install

- name: Build
run: bun run build

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PM_TOKEN: ${{ secrets.NPM_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
run: |
bun run auto shipit
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ target
node_modules/
**.vsix
.DS_Store

.env
Binary file modified bun.lockb
Binary file not shown.
8 changes: 7 additions & 1 deletion crates/does-it-throw-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
edition = "2021"
name = "does-it-throw-wasm"
version = "0.1.0"
description = "LSP server wasm binding for does-it-throw"
license = "MIT"
documentation = "https://github.com/michaelangeloio/does-it-throw/blob/main/readme.md"
repository = "https://github.com/michaelangeloio/does-it-throw"
homepage = "https://github.com/michaelangeloio/does-it-throw/blob/main/readme.md"


[lib]
crate-type = ["cdylib"]

[dependencies]
does-it-throw = { path = "../does-it-throw" }
does-it-throw = { path = "../does-it-throw", version = "0.1.0"}
swc_common = "0.33"
swc_ecma_parser = "0.141.3"
swc_ecma_ast = "0.110.0"
Expand Down
5 changes: 5 additions & 0 deletions crates/does-it-throw/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
[package]
name = "does-it-throw"
version = "0.1.0"
description = "LSP library for finding ES throw statements"
license = "MIT"
documentation = "https://github.com/michaelangeloio/does-it-throw/blob/main/readme.md"
repository = "https://github.com/michaelangeloio/does-it-throw"
homepage = "https://github.com/michaelangeloio/does-it-throw/blob/main/readme.md"

[lib]
bench = false
Expand Down
Loading

0 comments on commit 0c8fbff

Please sign in to comment.