Skip to content

Commit

Permalink
feat: automatically publish to npm (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Barber authored Sep 5, 2023
1 parent c8045fb commit 2c161a5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node-version: [14.x, 16.x]
node-version: [16, 18]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -54,3 +54,10 @@ jobs:
run: npm test
env:
CI: true

- name: Maybe Release
if: matrix.os == 'ubuntu-latest' && matrix.node == 18 && github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
run: pnpm dlx [email protected]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vercel/fun",
"version": "1.0.4",
"version": "0.0.0-development",
"description": "Local Lambda development environment",
"main": "dist/src/index",
"typings": "dist/src/index",
Expand Down
4 changes: 4 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
branches: ['main'],
tagFormat: '${version}',
}

0 comments on commit 2c161a5

Please sign in to comment.