diff --git a/.github/workflows/publish-alpha.yml b/.github/workflows/publish-alpha.yml new file mode 100644 index 0000000000..19d95f8825 --- /dev/null +++ b/.github/workflows/publish-alpha.yml @@ -0,0 +1,20 @@ +name: Node.js Package Alpha +on: workflow_dispatch +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to GitHub Packages + - uses: actions/setup-node@v2 + with: + node-version: '12.x' + registry-url: 'https://npm.pkg.github.com' + - run: npm install + - run: npm run build + - run: ./node_modules/.bin/lerna publish --canary --registry https://npm.pkg.github.com --yes + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}