Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
meisZWFLZ committed Nov 27, 2023
2 parents 60f14d0 + 376c048 commit c894ee5
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 88 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.js

This file was deleted.

10 changes: 10 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": [
"plugin:@typescript-eslint/recommended",
"standard-with-typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {}
}
41 changes: 40 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,43 @@ jobs:
run: npm run build

- name: Test
run: npm test
run: npm test
release_and_publish:
runs-on: ubuntu-latest
environment: npm_publish_env
needs: build
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

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Print Head of token
run: echo ${{secrets.NPM_TOKEN}} | head -c6

- name: Configure NPM
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Run Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASR_TOKEN }}
40 changes: 0 additions & 40 deletions .github/workflows/publish.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
node_modules

# build directory
out
out

# npm packages
*.tgz
5 changes: 2 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# config files
.prettierignore
.eslintrc.js
.eslintrc.json
webpack.config.js
.commitlintrc.json

Expand All @@ -16,5 +16,4 @@ webpack.config.js

# ts
tsconfig.json
*.tsbuildinfo
*.ts
*.tsbuildinfo
Binary file removed lemlib-lemlink-0.0.0.tgz
Binary file not shown.
32 changes: 15 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@lemlib/lemlink",
"version": "0.0.0",
"version": "0.0.0-development",
"description": "An alternative project manager and uploader for vex v5 projects",
"main": "out/main.js",
"scripts": {
"build": "tsc",
"check-lint": "eslint \"src/**/*.ts\"",
"check-lint": "eslint \"src/**.ts\" --cache --cache-location node_modules/.cache/eslint/.eslintcache",
"check-format": "prettier . -c --cache",
"pre-commit": "npm run check-lint && npm run check-format",
"lint": "npm run check-lint --fix",
Expand All @@ -14,7 +14,8 @@
"test": "echo not implemented yet",
"package": "pkg . -t node18",
"prepare": "husky install",
"prepack": "npm run check-lint && npm run check-format"
"prepack": "npm run check-lint && npm run check-format",
"semantic-release": "semantic-release"
},
"keywords": [
"lemlib",
Expand All @@ -36,7 +37,8 @@
"husky": "^8.0.0",
"jest": "^29.7.0",
"prettier": "^3.1.0",
"typescript": "^5.0.2"
"typescript": "^5.0.2",
"semantic-release": "^22.0.8"
},
"bin": {
"lem-link": "out/main.js"
Expand All @@ -46,22 +48,18 @@
},
"release": {
"branches": [
"main",
"stable",
{
"name": "beta",
"name": "pre-release",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
"@semantic-release/github"
]
},
"repository": {
"type": "git",
"url": "https://github.com/meisZWFLZ/LemLink.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
console.log("hello lemlib");
console.log("hello lemlib + feature!");

0 comments on commit c894ee5

Please sign in to comment.