diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 481cddb..b060c44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,19 +14,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - - - name: Build Docker Image - uses: whoan/docker-build-with-cache-action@v5 - with: - image_name: halvardssm/package-translation-fetch/translations - dockerfile: .github/Dockerfile - username: halvardssm - password: "${{ secrets.GITHUB_TOKEN }}" - registry: docker.pkg.github.com - push_image_and_stages: false - name: Run Tests - run: docker run docker.pkg.github.com/halvardssm/package-translation-fetch/translations yarn test -p ${{ secrets.PATH }} -r ${{ secrets.REPO }} -t ${{ secrets.TOKEN }} + run: yarn test -p ${{ secrets.PATH }} -r ${{ secrets.REPO }} -t ${{ secrets.TOKEN }} release: needs: test @@ -55,20 +45,7 @@ jobs: release_name: Release ${{steps.check.outputs.version}} draft: false prerelease: false - - - name: Build Docker Image - if: steps.create_release.outcome == 'Success' - uses: whoan/docker-build-with-cache-action@v5 - with: - image_name: halvardssm/package-translation-fetch/translations - dockerfile: .github/Dockerfile - username: halvardssm - password: "${{ secrets.GITHUB_TOKEN }}" - registry: docker.pkg.github.com - push_git_tag: true - name: Publish package to NPM if: steps.create_release.outcome == 'Success' - run: | - docker run docker.pkg.github.com/halvardssm/package-translation-fetch/translations echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc - docker run docker.pkg.github.com/halvardssm/package-translation-fetch/translations yarn publish --non-interactive + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc && yarn pack && yarn publish translation-fetch-v${{steps.check.outputs.version}}.tgz --non-interactive diff --git a/package.json b/package.json index a90b39d..99b782d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "translation-fetch", - "version": "0.1.10", + "version": "0.1.11", "repository": "github.com/halvardssm/package-translation-fetch.git", "author": "Halvard Mørstad ", "license": "MIT", @@ -11,14 +11,13 @@ "dist/*" ], "scripts": { - "build": "yarn run lint && tsc && chmod +x ./dist/*", - "build:image": "docker build -t translations -f .github/Dockerfile .", + "build": "yarn && yarn run lint && tsc && chmod +x ./dist/*", "lint": "eslint --ext .ts src", "lint:fix": "eslint --ext .ts src --fix", + "prepack": "yarn build", "pretest": "yarn build", "test": "dist/bin.js", - "test:ts": "ts-node src/bin.ts", - "test:image": "yarn run build:image && docker run translations yarn test" + "test:ts": "ts-node src/bin.ts" }, "dependencies": { "commander": "^5.1.0",