Skip to content

Commit

Permalink
ci: add publish action (#325)
Browse files Browse the repository at this point in the history
This will automatically publish upon merging to `main` using
[semantic-release](https://www.npmjs.com/package/semantic-release)
  • Loading branch information
styfle authored Nov 30, 2022
1 parent e608ce3 commit fc23cc1
Show file tree
Hide file tree
Showing 4 changed files with 2,183 additions and 46 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
jobs:
test:
name: Test on node ${{ matrix.node }} and ${{ matrix.os }}
timeout-minutes: 16
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -45,3 +45,9 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: yarn codecov
- 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: yarn semantic-release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vercel/nft",
"version": "0.22.1",
"version": "0.0.0-development",
"repository": "vercel/nft",
"license": "MIT",
"main": "./out/index.js",
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}',
}
Loading

0 comments on commit fc23cc1

Please sign in to comment.