Skip to content

Commit

Permalink
use a token which is not the default token so that other actions can …
Browse files Browse the repository at this point in the history
…be triggered based on this action
  • Loading branch information
JakeChampion committed Apr 9, 2020
1 parent 7852a41 commit 16d2b29
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automatic-tag-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
name: Create new version/tag
if: github.event.pull_request.merged # Only run on merged pull-requests
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.ORIGAMI_GITHUB_TOKEN }}
14 changes: 13 additions & 1 deletion .github/workflows/release-origami-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ jobs:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install --only=dev
- name: Repository name
id: repo_name
run: echo ::set-output name=REPO_NAME::$(echo $GITHUB_REPOSITORY | cut -d / -f 2)
- name: Echo
run: echo ${{ steps.repo_name.outputs.REPO_NAME }}
- name: Get the version
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- run: npx origami-ci release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_USERCONFIG: ~/.npmrc
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
ORIGAMI_CI_NAME: ${{ steps.repo_name.outputs.REPO_NAME }}
ORIGAMI_CI_VERSION: ${{ steps.version.outputs.VERSION }}
GITHUB_TOKEN: ${{ secrets.ORIGAMI_GITHUB_TOKEN }}

0 comments on commit 16d2b29

Please sign in to comment.