diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 52a87b4..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Release - -on: - release: - types: [published] - -jobs: - release: - name: Release - runs-on: ubuntu-latest - - steps: - - name: Branch name - id: branch_name - run: | - echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/} - echo ::set-output name=TARBALL_FOCAL::grammarly-focal-${GITHUB_REF#refs/tags/}.tgz - echo ::set-output name=TARBALL_FOCAL_ATOM::grammarly-focal-atom-${GITHUB_REF#refs/tags/}.tgz - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version-file: '.nvmrc' - - run: yarn install --frozen-lockfile - - run: yarn build - - run: yarn test - - run: yarn package - - name: Upload @grammarly/focal binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./packages/focal/${{ steps.branch_name.outputs.TARBALL_FOCAL }} - asset_name: ${{ steps.branch_name.outputs.TARBALL_FOCAL }} - tag: ${{ github.ref }} - - name: Upload @grammarly/focal-atom binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./packages/focal-atom/${{ steps.branch_name.outputs.TARBALL_FOCAL_ATOM }} - asset_name: ${{ steps.branch_name.outputs.TARBALL_FOCAL_ATOM }} - tag: ${{ github.ref }} diff --git a/.github/workflows/version.yml b/.github/workflows/version-and-release.yml similarity index 99% rename from .github/workflows/version.yml rename to .github/workflows/version-and-release.yml index 74211e0..6fc098d 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version-and-release.yml @@ -1,4 +1,4 @@ -name: Version +name: Version/Release on: push: