Skip to content

Instantly share code, notes, and snippets.

View tianhaoz95's full-sized avatar

Tianhao Zhou tianhaoz95

View GitHub Profile
// devcontainer.json
{
"name": "TensorFlow GPU",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": ["--gpus=all"]
}
{
"name": "fastlane-plugin-flutter_version",
"version": "1.1.5",
"description": "TBH this is only for releasing the package...",
"scripts": {
"release": "semantic-release"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
name: Publish Package
on:
push:
branches:
- "main"
jobs:
release-to-registries:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
@tianhaoz95
tianhaoz95 / .releaserc.json
Created May 19, 2021 08:09
Configuration for semantic release for Ruby
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
@tianhaoz95
tianhaoz95 / install.sh
Created May 19, 2021 08:02
Install semantic release
npm init
# Note that it doesnt matter what information we initialize
# the Node.js package with since we are just using it to
# release the Ruby packages.
npm install --save-dev semantic-release
npm install --save-dev @semantic-release/changelog
npm install --save-dev @semantic-release/git
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm ci && npm run dist
{
"scripts": {
"build": "tsc",
"compile": "ncc build lib/index.js --out compiled --license licenses.txt",
"dist": "npm run build && npm run compile"
},
"devDependencies": {
"@vercel/ncc": "^0.28.5"
}
}
npm install --save-dev semantic-release
npx semantic-release-cli setup
name: Release Actions
on:
push:
branches: [ main ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
["@semantic-release/npm", { "npmPublish": false}],
["@semantic-release/git",
{
"assets": ["package.json", "package-lock.json", "compiled/index.js", "CHANGELOG.md"],