Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/npm-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- 'v*-alpha*'

permissions:
contents: write
packages: write

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -22,13 +26,3 @@ jobs:
- run: yarn publish --access public --tag alpha
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v1
with:
node-version: 14.x
registry-url: https://registry.npmjs.org/
scope: '@eqworks'
always-auth: true
- run: yarn publish --access public --tag alpha
env:
NODE_AUTH_TOKEN: ${{ secrets.CD_NPM_TOKEN_PUBLISH }}
15 changes: 5 additions & 10 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- 'v*' # proceeds eg: v1.0
- '!v*-*' # skips eg: v1.2.99-beta1, v3.5.0-test, etc.

permissions:
contents: write
packages: write

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -27,19 +31,10 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v1
with:
node-version: 14.x
registry-url: https://registry.npmjs.org/
scope: '@eqworks'
always-auth: true
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.CD_NPM_TOKEN_PUBLISH }}

- name: Generate tag associated release changelog
if: ${{ success() }}
run: npx @eqworks/release changelog -v --head ${GITHUB_REF##*/} --github --skip alpha
env:
NODE_AUTH_TOKEN: ${{ secrets.CD_GITHUB_TOKEN }}
GITHUB_OWNER: EQWorks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading