Skip to content

Commit

Permalink
ci: publish release
Browse files Browse the repository at this point in the history
  • Loading branch information
tuannm151 committed Jul 1, 2024
1 parent 60957f9 commit 22e393e
Show file tree
Hide file tree
Showing 5 changed files with 276 additions and 248 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: continuous-integration
name: ci

on:
push:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Release

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Install dependencies
run: yarn --frozen-lockfile
- name: ESLint
run: yarn lint
- name: Unit tests
run: yarn test
- name: Publish
if: matrix.node-version == 20
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Binary file added .yarn/install-state.gz
Binary file not shown.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "envalid",
"name": "@devops-sbc/envalid",
"version": "8.0.0",
"description": "Validation for your environment variables",
"main": "dist/index.js",
Expand All @@ -22,7 +22,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/af/envalid"
"url": "https://github.com/BSSCommerce/shopify-envalid"
},
"keywords": [
".env",
Expand All @@ -46,7 +46,7 @@
"ts-jest": "29.1.2",
"typescript": "5.2.2"
},
"author": "Aaron Franks",
"author": "BSSCommerce",
"license": "MIT",
"prettier": {
"printWidth": 100,
Expand All @@ -59,5 +59,6 @@
"pre-commit": "yarn lint",
"pre-push": "yarn test"
}
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
Loading

0 comments on commit 22e393e

Please sign in to comment.