Skip to content

Commit

Permalink
Merge pull request #490 from Turbo87/ci-publish
Browse files Browse the repository at this point in the history
CI: Release tags automatically
  • Loading branch information
Turbo87 authored Aug 7, 2021
2 parents 914e60a + fae36f3 commit 40bf579
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
push:
tags:
- '*'

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: 'https://registry.npmjs.org'

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"clean": "rimraf lib",
"fix": "yarn lint -- --fix",
"lint": "eslint src --ext ts --format stylish",
"prepublish": "yarn build",
"prepack": "yarn build",
"prettier": "prettier --write 'src/**/*.ts'",
"test": "jest",
"test-ci": "yarn build && yarn test",
Expand Down

0 comments on commit 40bf579

Please sign in to comment.