Skip to content

Commit

Permalink
fix: wire machine creds for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
telackey committed Nov 24, 2020
1 parent 2fc1c5a commit 986bbc8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/beta-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ jobs:
git tag -f "v$VERSION-beta.0"
git push --tags -f
yarn lerna publish from-package --force-publish -y --dist-tag="beta"
yarn wire profile init --name $WIRE_PROFILE --template-url "$WIRE_PROFILE_URL"
yarn wire machine delete --name beta
sleep 10
yarn wire machine create --name beta --cliver '@beta'
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
WIRE_PROFILE: ci
WIRE_PROFILE_URL: ${{secrets.wire_profile_url}}
WIRE_MACHINE_DO_TOKEN: ${{secrets.wire_machine_do_token}}
WIRE_MACHINE_GITHUB_TOKEN: ${{secrets.wire_machine_github_token}}
WIRE_MACHINE_DNS_DOMAIN: ${{secrets.wire_machine_dns_domain}}
7 changes: 7 additions & 0 deletions .github/workflows/main-release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,15 @@ jobs:
git push --tags -f
git push --delete origin "${{ steps.release.outputs.tag_name }}"
yarn lerna publish from-package --force-publish -y --dist-tag="alpha"
yarn wire profile init --name $WIRE_PROFILE --template-url "$WIRE_PROFILE_URL"
yarn wire machine delete --name alpha
sleep 10
yarn wire machine create --name alpha --cliver '@alpha'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
WIRE_PROFILE: ci
WIRE_PROFILE_URL: ${{secrets.wire_profile_url}}
WIRE_MACHINE_DO_TOKEN: ${{secrets.wire_machine_do_token}}
WIRE_MACHINE_GITHUB_TOKEN: ${{secrets.wire_machine_github_token}}
WIRE_MACHINE_DNS_DOMAIN: ${{secrets.wire_machine_dns_domain}}
if: ${{ steps.release.outputs.release_created }}
7 changes: 7 additions & 0 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ jobs:
git tag -f "v$VERSION"
git push --tags -f
yarn lerna publish from-package --force-publish -y
yarn wire profile init --name $WIRE_PROFILE --template-url "$WIRE_PROFILE_URL"
yarn wire machine delete --name release
sleep 10
yarn wire machine create --name release
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
WIRE_PROFILE: ci
WIRE_PROFILE_URL: ${{secrets.wire_profile_url}}
WIRE_MACHINE_DO_TOKEN: ${{secrets.wire_machine_do_token}}
WIRE_MACHINE_GITHUB_TOKEN: ${{secrets.wire_machine_github_token}}
WIRE_MACHINE_DNS_DOMAIN: ${{secrets.wire_machine_dns_domain}}

0 comments on commit 986bbc8

Please sign in to comment.