diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 984e520..042e14d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,10 +79,9 @@ jobs: if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') run: cargo login ${{ secrets.CRATES_TOKEN }} - # todo: enable once the parser is published - # - name: Cargo publish - # if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') - # run: cargo publish + - name: Cargo publish + if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') + run: cargo publish # GITHUB RELEASE - name: Pre-release @@ -140,14 +139,13 @@ jobs: repository: dprint/plugins token: ${{ secrets.CI_REPO_PAT }} # github.token is scoped to current repo, so use this to push to other repo path: dprint-plugins - # todo: enable once adding this to dprint init - #- name: Plugin publish - # if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') - # run: | - # cd dprint-plugins - # node scripts/replace-plugin.js dprint-plugin-dockerfile ${{ steps.get_tag_version.outputs.TAG_VERSION }} dockerfile-${{ steps.get_tag_version.outputs.TAG_VERSION }} - # git add . - # git config user.name "David Sherret" - # git config user.email "dsherret@users.noreply.github.com" - # git commit -m "dprint-plugin-dockerfile ${{ steps.get_tag_version.outputs.TAG_VERSION }}" - # git push origin main + - name: Plugin publish + if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') + run: | + cd dprint-plugins + node scripts/replace-plugin.js dprint-plugin-dockerfile ${{ steps.get_tag_version.outputs.TAG_VERSION }} dockerfile-${{ steps.get_tag_version.outputs.TAG_VERSION }} + git add . + git config user.name "David Sherret" + git config user.email "dsherret@users.noreply.github.com" + git commit -m "dprint-plugin-dockerfile ${{ steps.get_tag_version.outputs.TAG_VERSION }}" + git push origin main diff --git a/Cargo.toml b/Cargo.toml index 064d35e..230a58c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dprint-plugin-dockerfile" -version = "0.2.0" +version = "0.2.1" authors = ["David Sherret "] edition = "2021" homepage = "https://github.com/dprint/dprint-plugin-dockerfile" @@ -26,7 +26,7 @@ tracing = ["dprint-core/tracing"] [dependencies] anyhow = "1.0.51" -dockerfile-parser = { git = "https://github.com/dsherret/dockerfile-parser-rs", branch = "span-for-nodes" } +dockerfile-parser = "0.8.0-alpha.1" dprint-core = { version = "0.49.0", features = ["formatting"] } serde = { version = "1.0.88", features = ["derive"] } serde_json = { version = "1.0", optional = true }