Fix action selection #69
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
pull_request: | |
types: [closed] | |
paths: | |
- common/changes/** | |
jobs: | |
publish: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# Rush needs to diff against origin/main for changeset verification | |
fetch-depth: 0 | |
- uses: webfactory/ssh-agent@v0.5.4 | |
with: | |
ssh-private-key: ${{ secrets.MACHINEUSER_PRIVATE_KEY }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- uses: oleksiyrudenko/gha-git-credentials@v2-latest | |
with: | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Install wasm-pack | |
run: | | |
rustup target add wasm32-unknown-unknown | |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Install Rush | |
run: npm install -g @microsoft/rush | |
- name: Install project dependencies | |
run: rush install | |
- name: Build packages | |
run: rush build:release --only tag:production --only tag:tooling | |
- name: Check changeset status | |
id: verify | |
run: rush change --verify | |
- name: Run publish | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
id: publish | |
run: rush publish --apply --target-branch main --publish | |
if: ${{ steps.verify.outcome == 'success' }} |