Skip to content

Commit

Permalink
automatic npm and github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliav2 committed Apr 27, 2024
1 parent 6866530 commit 1e0f396
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Publish to NPM
# on:
# release:
# types: [created]
on:
push:
branches:
- main

paths:
- "packages/express-typed/package.json"
permissions:
contents: write
jobs:
Expand Down Expand Up @@ -35,7 +33,6 @@ jobs:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
working-directory: packages/express-typed
Expand All @@ -48,7 +45,7 @@ jobs:
run: echo version=v$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT
working-directory: packages/express-typed
- name: Publish package on NPM 📦
run: npm publish --tag alpha
run: npm publish
working-directory: packages/express-typed
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion packages/express-typed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-typed",
"version": "0.1.1-alpha.7",
"version": "0.1.2",
"description": "",
"type": "module",
"main": "dist/express-typed.js",
Expand Down

0 comments on commit 1e0f396

Please sign in to comment.