Commit da076d96 authored by Liam Horne's avatar Liam Horne

ci: migrate to github action tool

parent e868bb8e
...@@ -44,21 +44,18 @@ jobs: ...@@ -44,21 +44,18 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: yarn run: yarn
- name: Create .npmrc - name: Build
run: | run: yarn build
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN - name: Ignore Changesets
EOF run: rm -rf .changeset/*.md
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish To NPM or Create Release Pull Request - name: Publish To NPM or Create Release Pull Request
uses: changesets/action@master
id: changesets id: changesets
run: | with:
rm -rf .changeset/*.md version: yarn changeset version --snapshot
yarn build publish: yarn changeset publish --tag canary
yarn changeset version --snapshot
yarn changeset publish --tag canary
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment