feat - fixing copy over #489
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
# .github/workflows/ci.yml | |
name: PR Release | |
on: | |
push: | |
branches-ignore: | |
- $default-branch | |
- master | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@master | |
with: | |
# This makes Actions fetch all Git history so that Changesets | |
# can generate changelogs with the correct commits. | |
fetch-depth: 0 | |
# If you use a version of Node other than 12, change it here. | |
- name: Set up Node.js 18.x | |
uses: actions/setup-node@master | |
with: | |
node-version: 18.x | |
# If you use npm instead of yarn, change this to `npm install`. | |
- name: Install dependencies | |
run: yarn | |
# Change this to customize your build command. | |
# - name: Build | |
# run: yarn build | |
# Change this to customize your test command. | |
- name: Test | |
run: yarn test | |
- name: Create .npmrc | |
run: | | |
cat << EOF > "$HOME/.npmrc" | |
//registry.npmjs.org/:_authToken=$NPM_TOKEN | |
EOF | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Release snapshot | |
run: | | |
npx changeset version --snapshot --openssl-legacy-provider | |
npx changeset publish --tag canary --openssl-legacy-provider | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |