Skip to content

Commit

Permalink
chore: bump version to 0.3.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwlad90 committed Oct 9, 2024
1 parent 664f84e commit 3316497
Show file tree
Hide file tree
Showing 25 changed files with 113 additions and 105 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/napi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,20 +304,20 @@ jobs:
run: |
sed -i "s|require('@stylexswc/rs-compiler-[^']*')|require('@stylexswc/rs-compiler')|g" crates/stylex-rs-compiler/dist/index.js
shell: bash
# - name: Publish
# run: |
# npm config set provenance true
# if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
# then
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# npm publish --access public
# elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
# then
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# npm publish --tag next --access public
# else
# echo "Not a release, skipping publish"
# fi
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: |
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
pnpm publish -r --access public
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
pnpm publish -r --tag next --access public
else
echo "Not a release, skipping publish"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
12 changes: 10 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,25 @@ on:
push:
tags:
- "*.*.*"

- "*.*.*-*.*"
jobs:
generate-pre-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set prerelease variable
id: prerelease
run: |
if [[ "${GITHUB_REF#refs/tags/}" == *-* ]]; then
echo "::set-output name=prerelease::true"
else
echo "::set-output name=prerelease::false"
fi
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: false
prerelease: ${{ steps.prerelease.outputs.prerelease }}
generate_release_notes: true
draft: true
fail_on_unmatched_files: true
6 changes: 3 additions & 3 deletions apps/nextjs-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stylexswc/next-example",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"private": true,
"scripts": {
"clean": "rimraf .next",
Expand All @@ -22,8 +22,8 @@
},
"devDependencies": {
"@stylexjs/eslint-plugin": "^0.7.5",
"@stylexswc/nextjs-plugin": "0.2.4",
"@stylexswc/rs-compiler": "0.2.4",
"@stylexswc/nextjs-plugin": "0.3.0-rc.1",
"@stylexswc/rs-compiler": "0.3.0-rc.1",
"@types/node": "^20.10.4",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
Expand Down
6 changes: 3 additions & 3 deletions apps/nextjs-swc-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stylexswc/next-example",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"private": true,
"scripts": {
"clean": "rimraf .next",
Expand All @@ -22,8 +22,8 @@
},
"devDependencies": {
"@stylexjs/eslint-plugin": "^0.7.5",
"@stylexswc/nextjs-swc-plugin": "0.2.4",
"@stylexswc/swc-plugin": "0.2.4",
"@stylexswc/nextjs-swc-plugin": "0.3.0-rc.1",
"@stylexswc/swc-plugin": "0.3.0-rc.1",
"@types/node": "^20.10.4",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-path-resolver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stylex_path_resolver"
version = "0.2.4"
version = "0.3.0-rc.1"
edition = "2021"
rust-version = "1.80.0"
description = "Path resolver for StyleX SWC plugin"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-path-resolver/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@stylexswc/path-resolver",
"description": "SWC lib for path imports resolving for SWC StyleX plugin",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"config": {
"scripty": {
"path": "../../scripts/packages"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-rs-compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stylex_compiler_rs"
version = "0.2.4"
version = "0.3.0-rc.1"
edition = "2021"
license.workspace = true
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-rs-compiler/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stylexswc/rs-compiler-darwin-arm64",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"private": true,
"os": [
"darwin"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-rs-compiler/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stylexswc/rs-compiler-darwin-x64",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"private": true,
"os": [
"darwin"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-rs-compiler/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stylexswc/rs-compiler-linux-arm64-gnu",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"private": true,
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-rs-compiler/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stylexswc/rs-compiler-linux-x64-gnu",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"private": true,
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-rs-compiler/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stylexswc/rs-compiler-linux-x64-musl",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"private": true,
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-rs-compiler/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stylexswc/rs-compiler-win32-x64-msvc",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"private": true,
"os": [
"win32"
Expand Down
106 changes: 53 additions & 53 deletions crates/stylex-rs-compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,59 @@
{
"name": "@stylexswc/rs-compiler",
"version": "0.2.4",
"description": "NAPI-RS compiler for transform StyleX code",
"main": "dist/index.js",
"repository": "https://github.com/Dwlad90/stylex-swc-plugin",
"license": "MIT",
"private": false,
"version": "0.3.0-rc.1",
"ava": {
"extensions": {
"ts": "module"
},
"timeout": "2m",
"workerThreads": false,
"environmentVariables": {
"TS_NODE_PROJECT": "./tsconfig.json"
},
"nodeArguments": [
"--import",
"@swc-node/register/esm-register"
]
},
"devDependencies": {
"@napi-rs/cli": "^2.18.4",
"@stylexjs/open-props": "^0.7.5",
"@stylexjs/stylex": "^0.7.5",
"@swc-node/register": "^1.10.6",
"@swc/core": "^1.6.13",
"@taplo/cli": "^0.7.0",
"@types/node": "^20",
"ava": "^6.1.3",
"benchmark": "^2.1.2",
"chalk": "^5.3.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"npm-run-all2": "^6.2.2",
"oxlint": "^0.9.0",
"prettier": "^3.3.3",
"tinybench": "^2.8.0",
"typescript": "^5.5.3"
},
"engines": {
"node": ">= 18"
},
"files": [
"dist/index.d.ts",
"dist/index.js"
],
"keywords": [
"napi-rs",
"NAPI",
"N-API",
"Rust",
"NAPI",
"napi-rs",
"node-addon",
"node-addon-api",
"Rust",
"StyleX",
"SWC"
],
"files": [
"dist/index.d.ts",
"dist/index.js"
],
"license": "MIT",
"main": "dist/index.js",
"napi": {
"name": "rs-compiler",
"triples": {
Expand All @@ -34,59 +68,25 @@
]
}
},
"engines": {
"node": ">= 18"
},
"packageManager": "pnpm@9.9.0",
"private": false,
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Dwlad90/stylex-swc-plugin",
"scripts": {
"artifacts": "napi artifacts",
"bench": "node --import @swc-node/register/esm-register benchmark/bench.ts",
"build": "napi build --platform --release dist",
"build:debug": "napi build --platform",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:toml": "taplo format",
"format:rs": "cargo fmt",
"format:toml": "taplo format",
"lint": "oxlint .",
"prepublishOnly": "napi prepublish -t npm",
"prepublishOnly": "napi prepublish --skip-gh-release && git checkout .",
"test": "ava",
"version": "napi version"
},
"devDependencies": {
"benchmark": "^2.1.2",
"@stylexjs/open-props": "^0.7.5",
"@stylexjs/stylex": "^0.7.5",
"@napi-rs/cli": "^2.18.4",
"@swc-node/register": "^1.10.6",
"@swc/core": "^1.6.13",
"@taplo/cli": "^0.7.0",
"ava": "^6.1.3",
"chalk": "^5.3.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"npm-run-all2": "^6.2.2",
"oxlint": "^0.9.0",
"prettier": "^3.3.3",
"tinybench": "^2.8.0",
"typescript": "^5.5.3",
"@types/node": "^20"
},
"ava": {
"extensions": {
"ts": "module"
},
"timeout": "2m",
"workerThreads": false,
"environmentVariables": {
"TS_NODE_PROJECT": "./tsconfig.json"
},
"nodeArguments": [
"--import",
"@swc-node/register/esm-register"
]
},
"packageManager": "pnpm@9.9.0"
}
}
}
2 changes: 1 addition & 1 deletion crates/stylex-shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stylex_shared"
version = "0.2.4"
version = "0.3.0-rc.1"
edition = "2021"
rust-version = "1.80.0"
description = "Shared SWC tranformer for StyleX"
Expand Down
14 changes: 7 additions & 7 deletions crates/stylex-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@stylexswc/shared",
"description": "Shared code for stylex-swc-plugin and stylex-rs-compiler",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"config": {
"scripty": {
"path": "../../scripts/packages"
Expand All @@ -11,11 +11,11 @@
"dist"
],
"keywords": [
"napi",
"napi-rs",
"stylex",
"swc",
"swc-plugin",
"napi-rs",
"napi"
"swc-plugin"
],
"license": "MIT",
"private": true,
Expand All @@ -35,10 +35,10 @@
"precommit": "lint-staged",
"prepublishOnly": "pnpm run build",
"prepush": "lint-prepush",
"test:rs": "NODE_ENV=test cargo test --lib --bins --tests fixture_",
"test:wasm": "NODE_ENV=test cargo test --lib --bins --tests --features wasm",
"test": "pnpm run test:rs && pnpm run test:wasm",
"test:profile": "NODE_ENV=test cargo flamegraph --root --test"
"test:profile": "NODE_ENV=test cargo flamegraph --root --test",
"test:rs": "NODE_ENV=test cargo test --lib --bins --tests fixture_",
"test:wasm": "NODE_ENV=test cargo test --lib --bins --tests --features wasm"
},
"sideEffects": false
}
2 changes: 1 addition & 1 deletion crates/stylex-swc-plugin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stylex_swc_plugin"
version = "0.2.4"
version = "0.3.0-rc.1"
edition = "2021"
rust-version = "1.80.0"
description = "SWC plugin for StyleX"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-swc-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@stylexswc/swc-plugin",
"description": "SWC plugin for transforming StyleX code",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"config": {
"scripty": {
"path": "../../scripts/packages"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-test-parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stylex_test_parser"
version = "0.2.4"
version = "0.3.0-rc.1"
edition = "2021"
rust-version = "1.80.0"
description = "Test parser for StyleX"
Expand Down
2 changes: 1 addition & 1 deletion crates/stylex-test-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@stylexswc/test-parser",
"description": "Parse origin jest stylex test files",
"version": "0.2.4",
"version": "0.3.0-rc.1",
"config": {
"scripty": {
"path": "../../scripts/packages"
Expand Down
Loading

0 comments on commit 3316497

Please sign in to comment.