Skip to content

Commit

Permalink
feat: add prerelease workflow (#257)
Browse files Browse the repository at this point in the history
* feat: add prerelease workflow

* fix: remove rc preid
  • Loading branch information
radko93 authored Mar 29, 2022
1 parent 7c2b8c7 commit ebe0776
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish-prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: npm Package

on:
release:
types: [prereleased]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm --no-git-tag-version version ${{ github.event.release.tag_name }}
- run: npm publish --access public --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
node-version: "14"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm --no-git-tag-version version ${{ github.event.release.tag_name }}
- run: npm publish --access public
Expand Down

0 comments on commit ebe0776

Please sign in to comment.